Skip to content
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 drop shadow rendering #6656

Open
tronical opened this issue Oct 25, 2024 · 0 comments
Open

Optimize drop shadow rendering #6656

tronical opened this issue Oct 25, 2024 · 0 comments
Assignees
Labels
a:renderer-skia Skia Renderer (mS) enhancement New feature or request

Comments

@tronical
Copy link
Member

When rendering a box (drop) shadow under an opaque rectangle with say a moderate drop shadow blur and x/y offset, the majority of the drop shadow's pixels are overdrawn by the opaque rectangle.

We could reduce overdraw a lot by applying a difference (rounded rect) clip on the Skia canvas before drawing the box shadow texture.

@tronical tronical added enhancement New feature or request a:renderer-skia Skia Renderer (mS) labels Oct 25, 2024
@tronical tronical self-assigned this Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:renderer-skia Skia Renderer (mS) enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant