Hey everyone,
Been working on on Math Quest for a few months and this trivia game is far from a memory hog but I have issues with the game restarting itself from time to time on iOS. No issues at all on PC.
Let me walk this back some...Originally my game was crashing on all iOS devices when it got to the intro of the game but worked fine on my PC. My estimated RAM in CS2 for the entire game was listed at 850MB or something like that. I discovered that some of my layouts were using showing 400-600MB of RAM in CS2. So I worked on getting all my layouts to be 170MB or under in CS2. Saved as file and opened in CS3 to export to iOS. With all the changes the estimated RAM for the entire game is down to around 350MB, i believe. This was a good learning experience for sure and I thought I had a grasp on things. :)
Started testing again and found some layouts we still crashing(by crashing I mean the game would just restart itself). Referenced layouts in CS3 and the bigger ones that were roughly 170MB in CS2 were showing as 400+ MB in CS3. I am not sure why but I worked on getting those down in CS3 and exported again.
Started testing again on iPhone X and it seems to work ok.
Started tested again on iPad Air 2 and it crashed after one play-through.
so this leads me to my questions.
- Why is CS2 showing the RAM preview as when debugging a layout at 170MB but CS3 shows it at 400MB for the exact same layout?
- Why is memory an issue if Apple sites show their RAM allowance is now 4GB, which I am not even glose too.
- If multiple play-through can suck up the RAM is there a way to reset the RAM at the start of a new play-through?
Thanks,
Rich