Memory Issues
JamesBoucher
Member Posts: 433
No matter what game I make for the iPhone it ends up freezing. Is this going to be fixed. I can start with five actors and have them chase another actor and within a minute have it freeze.
When I destroy an actor in GS does it release this object. When I program using xcode and a release an object I can see the memory allocation go down (debugging using instruments). When i destroy an actor in GS I do not see the memory allocation go down (once again using instruments). In GS the memory allocation just keeps going up and up.
How do I avoid this? When will it be fixed?
When I destroy an actor in GS does it release this object. When I program using xcode and a release an object I can see the memory allocation go down (debugging using instruments). When i destroy an actor in GS I do not see the memory allocation go down (once again using instruments). In GS the memory allocation just keeps going up and up.
How do I avoid this? When will it be fixed?
Comments
I know that bigger games like platformers can be more difficult and takes up a lot of memory, I found I had to sacrifice graphics for gameplay, and smooth framerates.
Is your viewer updated and matching the current version of GS? Is GS 0.6.2 and your viewer updated via xcode?
Good question on memory allocation, I would like to know this one too
My tank sets the x,y cord relative to the screen. The rats then use accelerate toward and rotate to position to chase the tank. I think this in its self is to much for GS to handle. Playing on the Mac works just fine.
When the tank destroys a rat the memory allocation does not go down even though the rat, the explosion and the ammo is being destroyed. When i look at the console log it says out of 16mb.
I wish I had access to the xcode because I know I could fix this.
So some behaviors will crash you game if not used with a timer. This only took two weeks to figure out.
I would like to thank those who tried to help especially mulcahy for the time he put in trying to help.
So if your getting the "Ran out of chunks of size 16" this is something to check for.
As for the memory leaks, this is a GS issue that they need to fix.