How much memory does an app use before it is laggy?

I know the iPhone 4 has 256MB of memory, so how much of it can be used in-game?

At what stage will the game crash?

Are you developing just for the iPhone4? If so, you will be severely limiting potential sales.

Here's a thread on stack overflow discussing devices and memory limitations; http://stackoverflow.com/questions/3448583/memory-uses-limit-on-iphone

Was just an example

I got this from somewhere:

1
2
3
4
5
6
7
8
9
10
11
local monitorMem = function()
 
                        collectgarbage("collect")
                        print( "\nMemUsage: " .. collectgarbage("count") )
                        local textMem = system.getInfo( "textureMemoryUsed" ) / 1000000
                        print( "TexMem: " .. textMem )
 
        end
        
        local memTimer = timer.performWithDelay(1000, monitorMem, -1) 
        

That is displaying the system memory used and the texture memory used.

views:1484 update:2011/10/4 8:06:35
corona forums © 2003-2011