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

Avoid unnecessarily refreshing SliderBodyPiece's path #20966

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Oct 27, 2022

This reduces the draw thread overhead when many sliders are selected in the editor. I'm making this a very local optimisation for now because I want to avoid changing all the UpdateFrom flow (profiling that alone shows that it has quite low overhead relative to other issues).

Before (on #20965): Update 44fps, Draw 22fps
After: Update 44fps, Draw 38fps

Copy link
Collaborator

@bdach bdach left a comment

Choose a reason for hiding this comment

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

Pretty big oversight this. But a free win is a free win.

@bdach bdach enabled auto-merge October 27, 2022 18:07
@bdach bdach merged commit 7479be3 into ppy:master Oct 27, 2022
@peppy peppy deleted the avoid-unnecessary-path-updates branch November 2, 2022 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants