Should graphics by multiples of 2?
bladeolson
Member Posts: 295
I have looked for an article I read here about sizes of graphics. Is it best to be muliples of 2 ? meaning 24 instead of 25 pixels wide? Can someone explain if this is true?
Comments
even numbers always multiply to even numbers.
It is not as critical if you never plan to scale it.
Thanks you Synthesis.
since gamesalad centers everything, any odd dimension will cause a pixel to get split - causing a blur. this will happen even at 100% scale.
the article you read most likely mentions 'powers' of two. i.e. 2,4,8,16,32,64,128,256,512,1024.
if you can keep your dimensions close to those numbers (without going over) you will save the most memory. so if possible, instead of a graphic being 66x40, try and make it 64x40. GS needs to reserve the next highest power of 2 chunk in memory to hold your graphics. so a 66x40 graphic actually requires a 128x64 chunk of memory, whereas a 64x40 can fit in a 64x64 chunk. you don't need to let it dictate your design, but it's something to be aware of...
If I'm not resizing actors, that is one of the first things I change when creating a new actor.