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 beatmap carousel performance regression with large databases #28946

Merged
merged 2 commits into from
Jul 19, 2024

Conversation

peppy
Copy link
Sponsor Member

@peppy peppy commented Jul 19, 2024

The main fix here is avoiding running Detach in the update thread.

This was incorrectly added in this call..

loadBeatmapSets(sender);

..in an attempt to handle realm subscription resetting better. While fixing this I have been testing blocking realm with song select open. This was causing deadlocks.

Let me first preface a user should never get into this state. Game-wide realm blocking is done from the main menu in all cases, not song select. But while I was here I wanted to fix this.

The simplest fix is to not handle the "blocking happened, clear everything" and just wait for the operation restoration to come in. The clear operation causes an ungodly event flow which eventually hits a blocking realm operation:

JetBrains Rider-EAP 2024-07-19 at 08 17 14

Hopefully the inline comments explain this amicably.


Closes #28929.

@peppy peppy added next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees! and removed size/S labels Jul 19, 2024
@smoogipoo smoogipoo merged commit 6553122 into ppy:master Jul 19, 2024
9 of 16 checks passed
@peppy peppy deleted the fix-carousel-pause branch July 22, 2024 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:song-select next release Pull requests which are almost there. We'll aim to get them in the next release, but no guarantees!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consistent lag spike when entering Song Select on 2024.718.0
2 participants