Search code examples
flashactionscript-3memoryprogramming-languages

What is the most possible memory consumed by mobile game while game is still running smoothly?


I am a new mobile game developer and I am just start to make some games by flash and AS3. While testing the memory used by my game(by tracing System.totalMemoryNumber), I found that my game consumes around 80MB and it's still going to grow. Could you tell me what is the limit that my game still run smoothly on those popular mobiles such as iPhone and Android devices?


Solution

  • i don't know about Android, but on iPhone you can use all the memory that is available at a certain point. This means that if the total memory is 128 MB (iPhone 3g) and the system takes ~80 MB (this can really be more or less, depends on many things) you have around 40 MB to play with. Now, this is really just for you to make an idea about it could be less or more. There is no hard coded limit, you can use what remains unused by the system.