-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Save Data is Lost when suspending device without manually closing content before exiting RetroArch #16237
Comments
for platforms with enforced memory cleanup / forced background application closing, it may be a good idea to set the default for SaveRAM Autosave Interval to be a lower value. side question - does the autosave interval decrement only while content is active, or does it also decrement while in the menu? if the former, that behavior should probably be changed (or made into an option, with the default being set to "menu included" on impacted platforms). on Android, it looks like you can use onPause() to flush volatile data to file; is writing a savestate and flushing current content/core and any volatile config data to a temp file feasible? if so, onStart() could check for the presence of that temp file and reload the relevant data. |
Duplicate / related: #4837 Past response from RA contributors (e.g. 1, 2, and the whole of #4901) indicate that this behaviour (SaveRAM not written to disk when saving) is intended, and "SaveRAM Autosave Interval" ( However, if SaveRAM Autosave Interval is not working on iOS (as mentioned in your follow-up comment), then that is a different issue worth reporting separately. |
Thanks for your detailed comment @jn64. I will then close this one and open a new one, making some tests recording the screen to try to document it better. |
Created one for PSVita too: #16324 |
Description
When you use in-game Saves (i.e. not Save State), don't close the game inside RetroArch after saving and suspend an iOS (tested on iPhone 11) or PSVita device, if the device for whatever reason decides to close RetroArch due to memory management on iOS, the save data is lost to the last time you have saved and closed the game manually.
This indicates that on those devices save game data is only flushed to storage when the game content is closed, rather to when the save game action is performed (or after some small time after).
(I believe the issue on both devices have the same root cause, therefore I created a single ticket; if you prefer to have one ticket for each platform, please let me know and I can duplicate them.)
Expected behavior
One would expect that the game is properly saved and not lose progression on the game.
Actual behavior
(As described on the description)
Steps to reproduce the bug
Bisect Results
Not really sure, I guess it has always been like that?
Version/Commit
You can find this information under Information/System Information
Environment information
The text was updated successfully, but these errors were encountered: