Is there any instruction about textureMemoryUsed?
For example, we should limit our app under how much memory used?
I found that the app start to delay when “textureMemoryUsed” go up to 6000000.
Is that normal?
Thank you. [import]uid: 4992 topic_id: 2288 reply_id: 302288[/import]
In general, it depends on the device. Traditionally, the rule of thumb on the iPhone has been to limit texture memory to 24 MB or less (in practice, it seems to be 20MB or less).
In your case, it looks like you’ve found a bug (just filed as #1325) in that we are not calculating the texture memory usage correctly. Instead, we are reporting the number of bytes of actual image data. This is different from the actual bytes of texture memory being used because texture dimensions must be powers of 2. This means the actual texture footprint can be much larger than the actual bitmap.
This is obviously quite wasteful, e.g. a 17x33 image must consume 32x64 (the next power of 2 for each dimension) bytes; nearly 75% of the texture memory in this case is wasted. To combat this, the game industry uses sprite sheets, a feature we offer in Corona Game Edition. [import]uid: 26 topic_id: 2288 reply_id: 6936[/import]