jingwood / jingwood/d2dlib

Performance idea

Open
#47 2 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C#
Stars
261
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Hi!

An idea which might be wrong for D2D but for GDI+ drawing a line is very expensive. Since most time you draw a straight line, vertical or horizontal I figured out that instead of using draw line, drawing a 1pixel rectangle is 5x faster than draw line.

Not sure if it is the same case here but if, it could be interesting with a “drawlinevertical” and “drawlinehorisontal” function which simply
Wraps the draw rectangle function.

Best
Christian

Contributor guide

No contributing guide indexed for this repository

Research direction

No file, test, or entry point is named. Locate the Direct2D line- and rectangle-drawing entry points, then benchmark the proposed vertical and horizontal cases against the current line path; done requires a confirmed performance benefit and an agreed API or documented reason not to add it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
computer-graphics, performance
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.