java - Libgdx game slower and slower on restart -
i'm testing game , i've encountered problem. main game class restarting (not whole application) when user dies, whenever restarts, runs slower , slower. i'm thinking of possible memory leak.
i'm switching on screen screen setscreen(screen sc) method. i'm cleaning in dispose() method, , can't find reason.
so i'm asking maybe point me in direction causing app slow down on restart?
it might shaperenderer since i'm rendering huge amount of shapes in loops- maybe that's problem? app works perfect unill call new instance of main game class.
there code post it, i'm sorry huge amount of text. hope somehow point me wrong!
something might you. use jmap ( http://docs.oracle.com/javase/7/docs/technotes/tools/share/jmap.html ). jmap displays instances of objects held jvm. make runnable jar of game, start game, check jmap, die bit , check jmap again. maybe see increase in texture-objects might not cleaning of ( easy forget if using assetmanager).
Comments
Post a Comment