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 a cache for memory stick usage #14825

Merged
merged 2 commits into from
Sep 11, 2021

Conversation

unknownbrackets
Copy link
Collaborator

See #13847 - this will at least reduce how often we recalculate the size of SAVEDATA, by caching it between writes.

Flushes this cache on any write to the memory stick (not just savedata, for simplicity and durability), and also when resuming/focusing the app. This is to make sure external deletions work in a mostly sane way to reduce usage.

-[Unknown]

Some games will loop over saves to check the size of each, and calculating
the total usage is expensive.  We don't need to recalculate each time.
This way if they switch away to delete files, it will have more free
space.
@unknownbrackets unknownbrackets added this to the v1.12.0 milestone Sep 11, 2021
@hrydgard
Copy link
Owner

Looks good, let's try it.

@hrydgard hrydgard merged commit 1eef897 into hrydgard:master Sep 11, 2021
@unknownbrackets unknownbrackets deleted the memstick-cache branch September 11, 2021 16:11
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