07-07-2012 12:55 AM
I wonder if there is some memory limit on maximum number of Bitmap objects initiated on the screen? I mean I have like *garage screen* in my game and 60 cars + other images and it seems loading time causes errors. Is this possible?
07-07-2012 07:43 PM - edited 07-08-2012 11:25 AM
Performance and attributes of the device, like memory, will provide the limits - there is no magic number.
There can be issues with Bitmaps and memory depending on how the bitmaps are loaded. Remember that loading and scaling Bitmaps is an expensive operation. in terms of memory used and processing capacity. If you are hitting a memory limit, then you will proably see the hour glass icon indicating the garbage collector has kicked in. Do you see tkis?
07-07-2012 08:14 PM
I need to provide more details: I load about 60+ images which have 2 mb size in total. Strange thing is that on emulator everything works great but on my 9700 - it just shows black screen and freezes the phone. No hour glass icon.
07-08-2012 11:05 AM
The emulator will work faster than the device. Make sure your not processing on the ui thread and and are correctly creating whatever fields you need on the ui thread or synchronizing with it.