
|
It's quite common to have all small images used in a MIDlet put together as one big image that's loaded at the MIDlet startup. The smaller images are then extracted and used as individual images using code like: Don't forget to release your resources If you fail to do this, you will end up with your images allocating twice as much memory as is needed. And what about the exception? The Sony Ericsson Z1010 and V800 phones have a specialized image memory of about 80Kb for the fastest possible access, which you can read more about in "Graphic memory on the Z1010". What's important to know is that the phone won't try to optimize the usage of this memory area, meaning that it won't move images already stored in other memory areas to this fast area when, for example, the fast access area gains free space due to garbage collection. This can lead to the case were the big image is stored in the fast memory, but the area isn't big enough to also store the smaller images. They are then instead stored in the slower access memory. Even after the big image has been de-referenced and the garbage collected, the small images will stay in the slower access memory, resulting in unnecessary slow access time. On the other hand, if the big image is too large for the fast access area, it will be stored in the slower access area and the small images will end up in the fast memory. More image optimization tips can be found in "Optimization of Z1010 image handling". Manage the alpha channel
protected void startApp(){
|
Copyright © 2001 - 2009 Sony Ericsson Mobile Communications AB. All Rights Reserved.