GameState or RenderPasses are not really removed

Hi



When I start a new Game from my ingame-menu, and pause to end my game, and then start another game,

moving and mouse-viewing has became slower (significantly). But I do not have FPS-reducing, and if I

shoot they move as quick as they should, so I think its about the input…

When I end my game, I call:



GameStateManager.getInstance().deactivateAllChildren();

GameStateManager.getInstance().detachAllChildren();

GameStateManager.getInstance().cleanup();

pManagerGS.getManager().clearAll();

pManagerGS.getManager().cleanUp();



This should cause every GameState and RenderPass to disappear, right? Or do I have to do

something else to make sure no GameState/RenderPass does interefere with my current game?

Maybe there are un-freed resources which are created in the Gamestates Constructor.



When you call GameStateManager.getInstance().cleanup() those are propably not freed, maybe override the cleanup method to make sure everything you create in the GS is also cleaned up correctly.