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 some issues with score database querying/caching, and allow selecting whether high-score display searches all difficulties or only the highest difficulty #953

Merged
merged 8 commits into from
Jan 29, 2025

Conversation

TheNathannator
Copy link
Collaborator

  • Highest score and percentage are now always queried separately from each other for the high score display.
  • The high score display now has the option to choose between whether all difficulties are searched for the highest score/percentage, or whether only the highest difficulty is used.
    • This defaults to the highest difficulty only option, since, from a naive/ideal perspective, it provides a more natural way of showcasing progression up the difficulty ladder and accounts for most general cases.

Copy link
Member

@EliteAsian123 EliteAsian123 left a comment

Choose a reason for hiding this comment

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

The only problem is see is if "High Score Display" in the settings is set to "Off". In nightly it looks like this:

image

However, in this PR it looks like this with "Highest across all difficulties" (which I'm assuming isn't intended).

image

Amazing work nonetheless!

@TheNathannator
Copy link
Collaborator Author

The one high score mode I didn't check lol, thanks for catching that!

@EliteAsian123 EliteAsian123 merged commit 801f9e8 into YARC-Official:dev Jan 29, 2025
@TheNathannator TheNathannator deleted the scoredb-tidy branch January 31, 2025 23:18
theli-ua pushed a commit to theli-ua/YARG that referenced this pull request Feb 2, 2025
…ting whether high-score display searches all difficulties or only the highest difficulty (YARC-Official#953)

* Tidy up score database queries into a helper type

* Better represent results of queries which only pull song checksums

* Redo highest score/percentage queries to fix percentage and score not displaying independently on song list

* Allow selecting whether high-score display uses all difficulties or only the highest difficulty

* Re-query database when caching new high scores on song end, instead of manually checking score values

* Invalidate score cache when switching history modes

* Clearly indicate when percent and score on the song list come from different difficulties

* Don't show score difficulty badge when high score display is disabled
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants