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

Add background beatmap processing #19272

Merged
merged 8 commits into from
Jul 22, 2022

Conversation

peppy
Copy link
Member

@peppy peppy commented Jul 21, 2022

Closes #10242.

As discussed, this is intended to be a stepping stone towards better storage/processing of star ratings locally. The focus here is on the invalidation flow when difficulty algorithm changes occur, so I didn't put too much thought into the BeatmapInfo / realm storage of the star rating.

Of note, the default value is now -1 to differentiate for "zero stars" and "not processed".

Also note that this will nuke all local beatmaps' difficulties once. Seems like a good move to get everything in a consistent state. This will also handle legacy issues like "length" not being calculated, for users with very old databases.

As previously mentioned, the online lookup / diff calc portions may eventually be split out (ie. "I only want to recalculate difficulty, not do an online lookup") but in name of simplicity I've left them bundled for now.

I haven't tested with a large database yet, so help there would be appreciated. I'll look to do that today or tomorrow.

@peppy peppy added the realm deals with local realm database label Jul 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
realm deals with local realm database size/L
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Star ratings are not updated in beatmap carousel display / sorting
2 participants