Optimizing Images Question
EricTippett
Member Posts: 45
I am now trying to optimize my game since it crashes when loading the gameplay on my iPad 1st gen.
Do I scale my actual image files down to the 64x64, 128x128, etc type numbers.
OR
Do I scale my actors down those sizes instead?
Does the game just take whatever size the image is and load it as the actors size?
I wasn't sure which route to take, could someone please clear this up for me?
Thanks
Do I scale my actual image files down to the 64x64, 128x128, etc type numbers.
OR
Do I scale my actors down those sizes instead?
Does the game just take whatever size the image is and load it as the actors size?
I wasn't sure which route to take, could someone please clear this up for me?
Thanks
Comments
The actors will use whatever size image you give them. So you have to strike a balance between the game looking good but also not crashing your lowest spec device.
If you really wanted you could have a 1000x1000 actor using an image that is 4x4.
So the actor size doesn't really make a difference.
You can also use a free programe called Image Alpha to reduce 24 bit pngs to 8bit pngs but still retain transparency. This won't make any difference to RAM usage but it will reduce the file size of images. So they will load quicker and you end up with a smaller zip file that you upload to apple.
Temporary remove some of your larger sized (pixel size) images and observe the Ram numbers in the GS viewer on your device. Experiment adding/subtracting those images.
With me, once I had gone above 130MB Ram the project crashes on that device.
I experienced a 513x513 image using 4 MB Ram so like the folk say above, keep within the pixel size boundaries.
For batch resizing, try the free program fotosizer. It's easy to use and there's no strings attached. I can't post a link from my Nook but it should be easy enough to google for anyone whi's interested.
e.g.
2x2, 2x4, 8x8, 4x128, 16x32, 512x512, 1024x64
So a white square at 64x64 will take up the same RAM as a mini Mona Lisa at 64x64
But like I said, reducing the file size of the images will make them load faster and make your final zip file smaller.