Laggy problem here

williamt2706williamt2706 Member, PRO Posts: 85
edited September 2012 in Working with GS (Mac)
Hi everyone,

My first game is release a two weeks ago, and it has some serious laggy problem.
So i decided to make an urgent update to reduce the memory usage such as uncheck preload art, change timer to "self.time", match the size of the image and the actor, and destroy the actor when it left the scene. When i tested it on ipod 3gen ( i always use this to test my game, because if it goes smoothly on older device, it will done better on newer device as i think), and it goes smoothly runs at 50-60 fps, and i decided to submit to apple and update my game. And the update is available today, and i installed it on my ipod (4gen), and the laggy is still there! a lot better performance than the first version by the way, but the laggy is not gone for good.

And i totally ran out of idea how to makes this game runs smoother. Any advice?
screenshot from my game:

image

The ninja size is 128x176, and i know it will consume 128x256 of ram. And it can be spawned 3-5 ninja at the same time. Is the laggy problem come from the amount of the ninja spawned? But the most critical part is when i pause and unpause the game, the ninja spawned just dissapear after i unpause the game like it has left the scene. And i don't want to sacrifce the image quality to improve performance if possible.

Comments

Sign In or Register to comment.