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

Fix degraded performance when changing mod settings on a large beatmap #28936

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

frenzibyte
Copy link
Member

BeatmapDifficultyCache correctly decouples diffcalc operations from being triggered by mod setting changes by 100ms, but the beatmap attributes display in mod select was incorrectly recreating the star difficulty bindable every change to anything, causing tons of diffcalc tasks to be triggered when the user slides a slider.

GetBindableDifficulty is already supposed to handle any changes to mod or ruleset, therefore it is not supposed to be manually called on such events (it also defeats the purpose of it being a bindable in the first place?).

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.

seems fine

@bdach bdach merged commit da4d37c into ppy:master Jul 19, 2024
13 of 16 checks passed
@frenzibyte frenzibyte deleted the fix-beatmap-atttributes-display branch July 19, 2024 07:52
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.

Performance drop while dragging mod customization sliders
2 participants