Open fdelapena opened 6 years ago
Androids design decisions are just a waste of dev time. Windows UWP simply suspends all process threads after a while and keeps the app in the page file :/
Though even with auto-save we can't guarantee that the game will be in a non-broken state as you can't save anywhere without issues. But better than nothing I guess :/
If the "Save" button is directly accessible, you are assured to be able to save without major issue, so that might be a start for games that don't have designated save points...
PS Vita version could have a similiar solution because the file descriptor are destroyed:
Create a save on suspend and load the save after resume.
Same limitations apply.
Android RAM optimisations may restart the SDL Activity on memory pressure or for battery saving purposes, this may happen with ease on most devices and app switching can mean users lose the game progress. There are some bug reports regarding this annoyance.
A "quick" workaround may be creating a savegame and load it when the SDL activity gets recreated. Some hints on this (1, 2, 3, 4, 5).