You definitely want to use as few spritesheets as possible. This will greatly improve memory usage and performance. Textures on the iPhone can only be loaded with their width and height having to be a power of two, so 2, 4, 8, 16 up to 1024 on older devices and 2048 on newer devices. This means if you have a texture at 66x66 it will have to load a 128x128 texture to fit it in, which almost quadruples the memory usage. So make your spritesheets in powers of two, like 512x1024 and put as many sprites as you can on it. Also put sprites that will be used in the same scenes on the same sheets, you don't want to have to load a second 1024x1024 spritesheet just to use one sprite image from it.
|