image limits question [ANSWERED]

Does anyone know if there is a limit to the number of images loaded by corona? I am encountering an issue where adding one more image load call causes my application to no longer work on the actual device even though the simulator continues to work.

I am running build 2011.591 and building for the Samsung Galaxy Tab 10.1
*ANSWER*
Build 2011.591 limited the number of files to 512. Updating to Build 2011.696 definitely increased or removed this limit allowing me to continue on with my development. [import]uid: 100558 topic_id: 18376 reply_id: 318376[/import]

you have more than 512 files on your directory?

if you do, then need to get later than build 591 if my memory serves me right.

if you are loading just images, there is a texture memory of 20mb on Android.

So if you have images that load and eat up more than 20MB of texture memory (not RAM) but OpenGL texture memory, it will not load any more images and most likely running out of texture memory and corona has not enough juice to give you any warnings.

c. [import]uid: 24 topic_id: 18376 reply_id: 70438[/import]

Thanks for the quick reply! Any idea which build i should be working with? I was using the latest daily build as of two or three weeks ago and was having problems where I was unable to build, reverting to 2011.591 was the solution to this. [import]uid: 100558 topic_id: 18376 reply_id: 70442[/import]

I’m not sure what build you should be working with, but this post can help you track texture memory usage.

http://developer.anscamobile.com/forum/2011/11/22/memory-texture-memory-questions [import]uid: 14218 topic_id: 18376 reply_id: 70444[/import]

Thanks, a few other good posts I found are:

http://developer.anscamobile.com/code/output-fps-and-texture-memory-usage-your-app
http://developer.anscamobile.com/code/texture-memory-monitor

I am definitely approaching both the 512 files loaded and 20 MB texture memory lines at the time that the application stops working on the device. I am building a test program to try to figure out which of these lines I might be crossing. I went through the daily build summary notes but didn’t find any mention of a 512 file limit in the builds after 2011.591. [import]uid: 100558 topic_id: 18376 reply_id: 70447[/import]

After builds 591 we removed the 512files limit.

You may want to have a proxy image…

lower size/scale - then load the original image.

c. [import]uid: 24 topic_id: 18376 reply_id: 70451[/import]

What’s a proxy image? [import]uid: 14218 topic_id: 18376 reply_id: 70472[/import]

proxy?

http://dictionary.reference.com/browse/proxy

  • in this scenario - an image of lower quality that acts as a placeholder while the bigger image is loading.

c
[import]uid: 24 topic_id: 18376 reply_id: 70474[/import]

I think switching to the lastest build fixed this particular issue. Is there a new higher limit i should beware of just in case? Thanks a lot for your help either way, I had been banging my head on that issue for a week or so. [import]uid: 100558 topic_id: 18376 reply_id: 70639[/import]