Memory Limits

Is there a limit in how much memory Apple will allow a game can have?   

For example - my level tracker screen (where they pick where they want to go) has 1568 and then level 1 drops down to 707; level 2 goes to 768   ; level 3 has 707

Can a level have like 4000?   

Thanks

Lori

The maximum amount of memory that your app can use will vary depending on the device. On this page, you can see the amount of RAM that various Apple devices have:

http://en.wikipedia.org/wiki/List_of_iOS_devices

Your app can use approximately 50% of the RAM before iOS kills the app.

If you use the default settings for CoronaSDK, your app can run on iOS 6 devices. Your app will not run on anything that has “Highest supported operating system” older then iOS 6.0. 

So, it looks like 256 MB is the smallest amount on any supported device. Staying under 50% of that should be OK for iOS, If you’re planning to port your app to Android, I would recommend trying to stay well below that number.

How can I tell how much memory my code is using in total?  I have a snippet of code in my main.lua that shows at a given moment in time to check for memory leaks but I’m not sure how to tell how much in total I have.

Thanks,

Lori

That’s the only way to check how much memory your app is using. You can put that same check in various places and then just look for the largest value that it reports.

THanks

The maximum amount of memory that your app can use will vary depending on the device. On this page, you can see the amount of RAM that various Apple devices have:

http://en.wikipedia.org/wiki/List_of_iOS_devices

Your app can use approximately 50% of the RAM before iOS kills the app.

If you use the default settings for CoronaSDK, your app can run on iOS 6 devices. Your app will not run on anything that has “Highest supported operating system” older then iOS 6.0. 

So, it looks like 256 MB is the smallest amount on any supported device. Staying under 50% of that should be OK for iOS, If you’re planning to port your app to Android, I would recommend trying to stay well below that number.

How can I tell how much memory my code is using in total?  I have a snippet of code in my main.lua that shows at a given moment in time to check for memory leaks but I’m not sure how to tell how much in total I have.

Thanks,

Lori

That’s the only way to check how much memory your app is using. You can put that same check in various places and then just look for the largest value that it reports.

THanks