Munchie Games Posted February 6, 2016 Share Posted February 6, 2016 HI, When moving back and fourth between say a menu state and a gameplay state, is there a way to not rebuild an entire game or menu each time? init and create seem to get hit every time a state is started. I didn't see much in interphase about proper multiple use of a state, and in the game examples it seems states are always rebuilt each time you move between them. Is that technique better for GC than initilizing game elements just once and reusing? Thanks Ian S Link to comment Share on other sites More sharing options...
WombatTurkey Posted February 6, 2016 Share Posted February 6, 2016 Depends on your game state, what are your states for? Menu Screen / Loading / etc? Link to comment Share on other sites More sharing options...
Munchie Games Posted February 6, 2016 Author Share Posted February 6, 2016 the states i have basically are preload, mainmenu, game...and once game is finished you can go back to main menu, then back to game. Link to comment Share on other sites More sharing options...
Recommended Posts