Memory Footprint

Member
Posts: 86
Joined: 2008.04
Post: #1
How much memory is it ok to use for an iPad game?

When I run allocations on instruments, it shows 81MB overall and 25mb live bytes. Which number is important?

Is there an upper bound I should be worried about?


Thanks for any feedback....
Quote this message in a reply
Member
Posts: 144
Joined: 2009.11
Post: #2
The iPad has 256 MiB of system RAM, and sources on the Internet say that only 200MiB of this is accessible to the user.

http://furbo.org/2010/04/03/benchmarking-in-your-lap/

Given the multi-tasking of iOS 4, I would strongly advise you to keep that memory footprint down to at least 150MiB. You're writing a game - so you do have some kind of moral right to use more memory, but also remember that other backgrounded tasks are going to be running, and you don't want to completely mess up the user experience with memory problems.

Everyone's favourite forum lurker!
https://github.com/NSError
Quote this message in a reply
Luminary
Posts: 5,143
Joined: 2002.04
Post: #3
The article linked says that individual apps do not have access to anywhere near 200MB. The only report I've seen that gives any kind of number said they were being killed off for using 80MB.
Quote this message in a reply
Member
Posts: 81
Joined: 2007.07
Post: #4
On my iPad I can use about 120-130MB with no problem, once I go towards 150MB sometimes memory will allocate and sometimes it won't. For my game I'm staying under 100MB with default settings, and using 120-130 when the highest settings are used.
Quote this message in a reply
Member
Posts: 166
Joined: 2009.04
Post: #5
(Jul 25, 2010 01:44 PM)cmiller Wrote:  The iPad has 256 MiB of system RAM, and sources on the Internet say that only 200MiB of this is accessible to the user.

http://furbo.org/2010/04/03/benchmarking-in-your-lap/

Given the multi-tasking of iOS 4, I would strongly advise you to keep that memory footprint down to at least 150MiB. You're writing a game - so you do have some kind of moral right to use more memory, but also remember that other backgrounded tasks are going to be running, and you don't want to completely mess up the user experience with memory problems.

His float tests are simply bogus.
His original test must have been ran using a floating point emulator or something like that cause there is no chance in hell that iPad is 400x faster than the original iPhone.
Quote this message in a reply
Post Reply