hrydgard / ppsspp

A PSP emulator for Android, Windows, Mac and Linux, written in C++. Want to contribute? Join us on Discord at https://discord.gg/5NJB6dD or just send pull requests / issues. For discussion use the forums at forums.ppsspp.org.
https://www.ppsspp.org
Other
11.01k stars 2.15k forks source link

Temporarily cache the fact that the game doesnt have achievments available for faster loading #18069

Open Domiiniik opened 1 year ago

Domiiniik commented 1 year ago

What should happen

Temporarily (weekly for instance) Cache the fact that the game doesnt have any achievements so next time you start the game that doesnt have them RetroAchievements won't try to connect to its servers anymore and thus slowing down game startup if your internet connection is slower. And the reason for cache to be temporarily and refreshed once a week or so is because someone can be adding unofficial achievements to the game.

Who would this benefit

People with slower Connection

Platform (if relevant)

None

Games this would be useful in

All

Other emulators or software with a similar feature

No response

Checklist

hrydgard commented 1 year ago

This is a reasonable idea, although if you really have a slow connection you can manually disable retroachievements as a workaround.

Might implement something like this in the future - and also cache the positive result, so we can show little cute RA icon on top of game icons, similar to the gear wheel icon for custom settings etc.

Domiiniik commented 1 year ago

Yeah, sounds really cool!

hrydgard commented 1 month ago

So, started sketching on this, and realized it's not super simple - achievement support may have been added since you last tried, so we must expire these cached entries. Which means we need to decide and store a cache expiry time. What may be appropriate that's short enough that it's not annoying if you know a game just got achievements, but also long enough that it's actually worthwhile?

(Though, the little icon idea might still make it worthwhile without the caching benefit)..