Rules of thumb for memory usage?

Does anyone have any rough guidelines as far as how much memory we can expect to use with our apps?

I’m primarily interested in iOS devices but welcome Android insights as well.

Through my research online I’ve seen many people talk about the 10MB range. I presume this is for their natively built apps. I imagine that whatever we build with Corona SDK uses more memory than what I get through the simulator? I have one app prototype I’ve been developing that had a memory leak. It would crash my iPad (original version) after some time. I didn’t have memory usage displayed (will go back and do that now that I’m thinking this through) but I’m certain it was much less than 10MB.

Thanks in advance for any input you can share :slight_smile:
PS - this is the function I’m using to monitor my memory (from one of the Blog tutorials):
[lua]local monitorMem = function()

collectgarbage()
print( "MemUsage: " … collectgarbage(“count”) )

local textMem = system.getInfo( “textureMemoryUsed” ) / 1000000
print( "TexMem: " … textMem )
end

Runtime:addEventListener( “enterFrame”, monitorMem )[/lua] [import]uid: 105707 topic_id: 32425 reply_id: 332425[/import]

Heres an older thread with some interesting information:

http://developer.coronalabs.com/forum/2012/01/08/acceptable-memory-usage

Joakim [import]uid: 81188 topic_id: 32425 reply_id: 128990[/import]

Thanks Joakim, that’s just what I was interested in. I appreciate the help out :slight_smile:

As a side note, I was having the same challenge that PitorT mentions in the thread with an app that crashes at about 600kb (he describes it at 550) of memory usage. [import]uid: 105707 topic_id: 32425 reply_id: 128998[/import]

Crashes?

Didn’t he say that the game was slowing down over a certain level of memory consumption but figured out that it was hes routine for measurement that was slowing down the app?

Joakim

[import]uid: 81188 topic_id: 32425 reply_id: 129036[/import]

Heres an older thread with some interesting information:

http://developer.coronalabs.com/forum/2012/01/08/acceptable-memory-usage

Joakim [import]uid: 81188 topic_id: 32425 reply_id: 128990[/import]

Thanks Joakim, that’s just what I was interested in. I appreciate the help out :slight_smile:

As a side note, I was having the same challenge that PitorT mentions in the thread with an app that crashes at about 600kb (he describes it at 550) of memory usage. [import]uid: 105707 topic_id: 32425 reply_id: 128998[/import]

Joakim, you’re right, he did say slow down. I was reading my own experience into things which was that a prototype I was working on would also start progressively lagging at that point and then eventually crash. Thanks for pointing that out! I kind of rushed to an assumption that he experienced the same thing I had :slight_smile: [import]uid: 105707 topic_id: 32425 reply_id: 129104[/import]

Crashes?

Didn’t he say that the game was slowing down over a certain level of memory consumption but figured out that it was hes routine for measurement that was slowing down the app?

Joakim

[import]uid: 81188 topic_id: 32425 reply_id: 129036[/import]

Joakim, you’re right, he did say slow down. I was reading my own experience into things which was that a prototype I was working on would also start progressively lagging at that point and then eventually crash. Thanks for pointing that out! I kind of rushed to an assumption that he experienced the same thing I had :slight_smile: [import]uid: 105707 topic_id: 32425 reply_id: 129104[/import]