Avarage Memory Usage In A Game

giacomopoppigiacomopoppi Member, PRO Posts: 914
edited November -1 in Working with GS (Mac)
Hi guys, I have never really payed attention to the memory usage in my games so I wanted to know what your avarages are for the memory usage in a simple game.

So far I have these results in a half finished game (with all graphics):
images: 28MB (constantly)
Sounds: none yet
Game Engine: 18-22MB
Other: 6.7MB
Total around 53MB

Is that more or less right? is the game engine a bit high?

Thanks in advance!

Giacomo

Comments

  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    @Ryan mhh, so probably 53 MB total is a bit much for an iPhone game... (thanks ;) )

    Anyone else?
  • outasiteoutasite Member Posts: 417
    try to keep it under 40 (or you risk a crash) if your want the older ones devices to handle it.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    yeah anything older the iphone 4 will be getting ready to crash around there
  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    Ok thanks guys, I have managed to lower the total to 40-42 now (at it's max capacity).
    Does anyone know what the "Other" stands for exactly? I have been searching the forums but havn't found a single clear answer..

    Giacomo
  • gamedivisiongamedivision Member Posts: 807
    yeah around about 40 for older devices but if you have resolution independence checked then older devices will use the smaller images that get created when you submit your game so the ram will be less,if your testing on an iphone 4 and you have doubled your image size for resolution independence,and checked RI, then 50mb is fine iphone 4 can handle 80mb.and like i said if you where to half your image size and then load the game in your iphone the ram would be way less as well.
    Hope this helps.
    you can always change your audio files from ogg to caf,as firemaplegames has stated before caf is uncompressed audio so GS doesnt have to uncompress it.also change your backgrounds for jpegs,right click open package contents,drag your jpg into image folder delete your png,open your assets.xml and find your image name change the png for jpg then save.then you can go down the route of making all your images white boxes and loading the images from the white boxes.as per mynameisace tutorial.my game runs into the 68mb range and loading times where around 8s to start a game ive used all these ideas and got my loading time down to 3.5 to 4s and im still going to try some other things
Sign In or Register to comment.