linebender / linebender/tiny-skia
In graphic rendering, why is stroke width 2.0 considerably slower than stroke width 1.0?
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 1.6k
- Forks
- 99
- Avg merge
- 2h 52m
- Merged PRs (30d)
- 1
Description
In my use case, there is a large number of trajectory points to be rendered. I noticed that setting the stroke width to 2 results in significantly slower rendering speed compared to setting it to 1. I tried disabling anti-aliasing, but still couldn’t achieve the same performance as with the stroke width set to 1.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by profiling the graphic rendering path with many trajectory points at stroke widths 1.0 and 2.0, both with and without anti-aliasing. Compare the work performed for each width and document the cause of the slowdown; done means the performance difference is explained or a focused improvement is identified and validated.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics, performance
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100