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?
Label: corona android iphone ipad building error inmobi problem display screen View image tableView failed object physics touch button game lua config event listener |
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.