#Game freezes when saving
8 messages · Page 1 of 1 (latest)
now all the menus are blank
it fixed itself after another restart, but the save issue still happens on occasion
So, I've seen some issues like this when popping in and out of the game with alt-tab. Essentially, the screen size gets measured at specific points during loading sequences. Those measurements are used to position on screen elements. If the game isn't the active window at the time when those measurements are taken, they store empty values, and the result is that everything gets smushed up into one spot like that.
Ah okay, I do tab out every now and then to my 2nd monitor. I will try to avoid this in future. Thank you!
alt-tab isn't necessarily going to break something, just try not to do it while transitioning between screens. (Easier said than done, I know that's when I tend to pause to do other things by habit)
Thinking about this some more, the game takes a screenshot of the map when you save to display alongside your save file. I could see that getting choked up if the screen was incorrectly reported as being 0x0 pixels.
did you try to profile or reproduce if that is the cause of issue? There's a lifecycle event on Android and maybe true for libgdx projects using LWJGL, so having them minimized, will call sooner or later the pause or dispose event.. read here: https://libgdx.com/wiki/app/the-life-cycle