iOS RAM Memory

FranAlt

  • Posts: 169
Hi everyone!

Im developing a simple game wich is about 8mb. The odd thing is that when I run it in my iPad I get up to 200MB of RAM usage! And for the same reason I can't run it in a iPod...

Anyone knows how to fix it? I use Labels and everything I'm supposed to use for iOS :/
Swipe - FREE          Cloud Run - FREE              
                                  
         iOS                                Android
    Android

toml2003

  • Posts: 351
Try unloading atlases that aren't being used. From my experience, iPod touch 4th gen can only hold 3 atlases at a time, it will crash if there are 4 or more atlases loaded.

FranAlt

  • Posts: 169
Thanks! That worked! It managed to drop the memory usage from 200MB to 20MB.
I now have to work on the FPS, I get really low values like 12fps when the main actor is moving. I guess its because of the old device I use to test (iPod 2g).
Swipe - FREE          Cloud Run - FREE              
                                  
         iOS                                Android
    Android

FranAlt

  • Posts: 169
Hi again.

Now that my iOS game is further more developed I find myself again with high usage of RAM memory, with values up to 118MB wich is really high, considering that the app weights just 12-20MB. It runs pretty well in my iPad (55-60fps with some lags) but refuses to open in my iPod Touch that has just 100MB of RAM.

This is what I've got:

-Max of 3 atlases loaded at the same time in every scene.

-4-5 Atributes mostly numeric.

-3 different fonts, one of them is pretty big.

-Animations are PNG (Don't know if this matters)

-The game randomly creates objects every (x) time (1 sec or less).

-Score is drawn using a "Label object" all the time.

Anyone know how to fix this?

Thanks!
Swipe - FREE          Cloud Run - FREE              
                                  
         iOS                                Android
    Android