Skip to content

vello_common: Use the maximum instead of the minimum as the start y position#1690

Open
LaurenzV wants to merge 1 commit into
mainfrom
laurenz/clip_max
Open

vello_common: Use the maximum instead of the minimum as the start y position#1690
LaurenzV wants to merge 1 commit into
mainfrom
laurenz/clip_max

Conversation

@LaurenzV
Copy link
Copy Markdown
Collaborator

Very big whoopsie. We should be using the maximum as the start point, not the minimum. Any y-coordinate that is above either of the two path's top y is guaranteed to be clipped away, so no point in iterating over those, it's a lot of wasted work otherwise. I noticed this when profiling a PDF of mine:

Before: Clipping takes up ~10% of the whole render time
image

After: Clipping takes up ~4.4% of the render time
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant