(cheevos) download badges on demand#18639
Merged
LibretroAdmin merged 3 commits intolibretro:masterfrom Jan 24, 2026
Merged
Conversation
|
That's basically causing the placeholder badge to be shown any time an achievement pops up. Opening the achievements menu to force a mass download doesn't help with this because that will only download the grayscale badges for achievements you haven't unlocked and colored badges for achievements you have already unlocked; once you unlock an achievement, the pop-up still requires the colored badge that will be downloaded on demand, making the shown badge to be the placeholder badge VERY often. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Instead of predownloading all achievement badges associated to a game, they are now downloaded on demand. This may cause the placeholder image to be displayed momentarily while the badge is downloaded, but avoids downloading all badges for a game when the user might not ever need most of them.
This will also eliminate the studder reported in #16470 and #17758 when initially loading a game, with the tradeoff of a small studder at each unlock.
Note that viewing the achievement menu creates demand for all of the game badges, so that will cause the mass download that was previously performed when the game was loaded. But doing so with the menu open will not impact the player's game experience. Closing the menu before the mass download completes will stop the mass download once the currently requested badges are written to disk.
Related Issues
#16470, #17758
Related Pull Requests
n/a
Reviewers
[If possible @mention all the people that should review your pull request]