Skip to content

Conversation

@lenemter
Copy link
Member

Significantly optimizes our drawing code by using shader to draw rounded rectangles. Multitasking view gets a huge performance boost by not manually checking/drawing ActiveShape since it's now done on GPU.

The shaders code looks weird but I just couldn't make it produce consistent results. I played with offsets and this configuration gives the most symmetrical and sharp results

@lenemter lenemter requested a review from a team July 10, 2025 14:21
@lenemter lenemter mentioned this pull request Jul 10, 2025
Copy link
Contributor

@zeebok zeebok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good! Might be a good idea to have UX pixel peep and ensure the radius matches?

@lenemter
Copy link
Member Author

I don't think this is necessary as in many cases (e.g. Tooltip) the border radius didn't align with our stylesheet

@lenemter lenemter requested a review from leolost2605 July 15, 2025 10:09
Copy link
Member

@leolost2605 leolost2605 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't say much about the shader code and can't test right now but apart from that LGTM :) 🚀⚡

@lenemter lenemter merged commit 3ed9547 into main Jul 15, 2025
5 checks passed
@lenemter lenemter deleted the lenemter/optimize-rounded branch July 15, 2025 10:30
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.

4 participants