-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize pixel overwrite #157
Comments
Can you change the benchmark harness to use fill_rect() instead of fill(). Raqote intentionally doesn't try to detect rectangular paths like Cairo and Skia do. |
Current benchmarks are unaffected by this optimization. |
Hmmm. That's a bit surprising. Can you commit the change and I'll take a look. |
What change? |
Using fill_rect() instead of fill() |
Yes, fill_rect will be faster, but cairo and skia results are independent from the shape in this case. Here are results of filling a star:
They are even faster here, because there are less scanlines. |
Ah, ok this will probably be best to look into after #158 is resolved. |
Skip blending when color is opaque or blending mode is Source/Clear. This is what skia and cairo do. And the results are pretty radical:
The text was updated successfully, but these errors were encountered: