How to deal with memory warning

Hi guys,
I’ve been trying to profile my app to see if there’s a leak or if it works on low end ios device (Ipad, we decided we don’t support 3GS)

There has been a few things that bothers me :

  • Our app got low memory warning when we just using 24MB of graphic memory (texture) and 8113.3145 (from the collectgarbage(“count”)). One time it even crashed our app which is bad :frowning:

Anyway, the resource usage based on that numbers is pretty normal right? or did I miss something? Is there a guideline on how much graphic memory/system memory that I can use?

Also what does the number behind the . in the collectgarbage(“count”) result? I didn’t know that memory comes in fraction?

thanks [import]uid: 76697 topic_id: 32942 reply_id: 332942[/import]

24 MB of texture memory seems to work for the 3GS, and I would think the iPad 2…

The consensus seems to be around 24 MB texture memory too, in order to target most devices (Droid as well as iOS):

http://developer.coronalabs.com/forum/2011/12/28/max-texture-memory

I think the 8113 == 8.113 MB of regular memory, right? My app is in the 2000 number on the count, but isn’t particularly hardcore. I get no memory warnings, and tested on 4th gen ipods and an ipad 3, but not an ipad 2 lately. [import]uid: 79933 topic_id: 32942 reply_id: 130883[/import]

24 MB of texture memory seems to work for the 3GS, and I would think the iPad 2…

The consensus seems to be around 24 MB texture memory too, in order to target most devices (Droid as well as iOS):

http://developer.coronalabs.com/forum/2011/12/28/max-texture-memory

I think the 8113 == 8.113 MB of regular memory, right? My app is in the 2000 number on the count, but isn’t particularly hardcore. I get no memory warnings, and tested on 4th gen ipods and an ipad 3, but not an ipad 2 lately. [import]uid: 79933 topic_id: 32942 reply_id: 130883[/import]

I think with any devices that has > 256MB RAM maybe below <80 is still okay. I hope so :slight_smile: [import]uid: 76697 topic_id: 32942 reply_id: 131323[/import]

I think with any devices that has > 256MB RAM maybe below <80 is still okay. I hope so :slight_smile: [import]uid: 76697 topic_id: 32942 reply_id: 131323[/import]