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

Improve performance of automatic break regeneration #28801

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

bdach
Copy link
Collaborator

@bdach bdach commented Jul 10, 2024

Do not regenerate breaks unless meaningful change to object start/end times is detected

Tangentially found when profiling #28792.

For reproduction, import https://osu.ppy.sh/beatmapsets/972#osu/9007, move any object on the playfield, and observe a half-second freeze when ending the drag.

Pool summary timeline break visualisations to reduce allocations

Self-explanatory.

Profiling results (release configuration, profile with tracing)

map master this PR, initial processing / processing after change to start or end time this PR, processing after no change to start or end time
https://osu.ppy.sh/beatmapsets/972#osu/9007 image image image
https://osu.ppy.sh/beatmapsets/479671#osu/1024215 image image image

… times is detected

Tangentially found when profiling ppy#28792.

For reproduction, import https://osu.ppy.sh/beatmapsets/972#osu/9007,
move any object on the playfield, and observe a half-second freeze
when ending the drag.
@peppy peppy merged commit 1381b3c into ppy:master Jul 10, 2024
8 of 11 checks passed
@bdach bdach deleted the break-generation-caching branch July 10, 2024 16:23
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