I have made a mobile version of my Planet Clicker, to run in the form of an app. I have made a system that saves the game every 15 seconds, saves the JSON as a Dictionary Value, then saves the Dictionary as JSON to Local Storage. However, after a little bit, the save takes around 10 seconds and freezes the UI (Music isn't affected), and on my iPhone 13 Mini that I sideloaded the IPA to, it even crashes. Is there a more efficient way to save the game for mobile?
I needed to change it to 15 seconds, it was originally 2, but that was way too much for it to bear. I want it to be like a normal app that progress is typically saved instantly, or more so just stored on the device plain.
I also need to use the `Save Game to Slot "xxx"` because my game is full of persistent objects.