EasyRPG / Player

RPG Maker 2000/2003 and EasyRPG games interpreter
https://easyrpg.org/player/
GNU General Public License v3.0
1.01k stars 192 forks source link

Android: Quicksave and recover after restarting app from background #1341

Open fdelapena opened 6 years ago

fdelapena commented 6 years ago

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).

Ghabry commented 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 :/

20kdc commented 6 years ago

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...

Ghabry commented 5 years ago

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.