linebender / linebender/tiny-skia

In graphic rendering, why is stroke width 2.0 considerably slower than stroke width 1.0?

Open
#158 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.