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? [import]uid: 79135 topic_id: 14958 reply_id: 314958[/import]
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? [import]uid: 79135 topic_id: 14958 reply_id: 314958[/import]
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 [import]uid: 52491 topic_id: 14958 reply_id: 55299[/import]
Was just an example
I got this from somewhere:
[lua]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)
[/lua]
What is that displaying? [import]uid: 79135 topic_id: 14958 reply_id: 55302[/import]
That is displaying the system memory used and the texture memory used. [import]uid: 84637 topic_id: 14958 reply_id: 55331[/import]
Same question but for Android. Would it be a problem to have an app use a few MBs of system memory? I’m guessing most apps make it in less than one MB system memory (?) but bigger project might cross that limit. When would the use of system memory become an issue? Asking in general out of curiosity
Thx [import]uid: 103873 topic_id: 14958 reply_id: 67203[/import]
With Android this varies so much it’s not funny, because there are SO many different Android devices, meaning we can’t give you a definitive answer.
Peach [import]uid: 52491 topic_id: 14958 reply_id: 67233[/import]
Thank you Peach. Yes I guess you have a really good point there.
But I’m still curios so let me rephrase the quesion in this way:
Have anyone reading this thread released a game/app that uses (for example) about 2-3 2 MB of system memory (would surprice me if it not have happened but I might be wrong) and if so what experience do you have of it in that case. Do many users complains about not being able to use it or that it crashes/gets laggy or something along those lines? I’m guessing it wouldn’t be a huge problem until you use at least a few MB more than that.
(We can even limit the question to android 2.2 and above as Corona does nowadays so that the older devices and games to them doesn’t matter.) [import]uid: 103873 topic_id: 14958 reply_id: 67255[/import]
Hey again,
I would encourage you to post this as a new thread in the Android section asking others about their experiences.
You’re more likely to have Android devs look at it knowing it just about Android 
Peach [import]uid: 52491 topic_id: 14958 reply_id: 67267[/import]
I will do that. Thank you again Peach [import]uid: 103873 topic_id: 14958 reply_id: 67274[/import]
With the code posted by anddrewscott I get this results:
MemUsage: 213.146484375
TexMem: 6.79936
Im developing for IOS the game is about 30% completed so far works perfect on iphone4 and ipod touch 8GB 3rd gen and ipad2 im just wondering whats an “ok range or what number do things get ugly?” [import]uid: 30314 topic_id: 14958 reply_id: 67286[/import]
Take a look at the first comment on this;
http://stackoverflow.com/questions/3585094/max-application-memory-limit-in-ipad
It’s all theory, in that other apps running are also using memory, etc.
What kind of app is it? (Or is that top secret?)
Peach
[import]uid: 52491 topic_id: 14958 reply_id: 67370[/import]
Hey peach I did checked out the link and as you said to me it sounded more like theory thats why I asked which range of numbers might be good or bad. But I think it comes down to the performance of your app as long as its running fine you should be ok. So far runs ok on my iphone4 and ipod touch 8gb 3rd gen havent tested it on ipad2 yet (I will when the app is more completed). But i guess if its running fine then ill ignore those numbers LOL unless I run into problems ill have to listen to them
Dont want to show screen shots yet (since Im still changing things around possibly even the main character) but its a Tilt base puzzle game with multiple levels! [import]uid: 30314 topic_id: 14958 reply_id: 67525[/import]
Sounds like fun 
For the memory, yes, if your app is running fine then that’s what matters. Apple only cares if the app is crashing, etc.
Testing on the 3rd gen touch if it is running smoothly there I wouldn’t worry too much. (Old devices like a 3G may struggle a bit, but then they normally do, especially if they’ve been updated to iOS4.)
Peach
[import]uid: 52491 topic_id: 14958 reply_id: 67700[/import]