Power of 8 (good band...)
gyroscope
I am here.Member, Sous Chef, PRO Posts: 6,598
Hi, I thought I'd better check this, to be on the safe side...
I've read that it's best (or critical?) to use the power of 8 for image sizes in GS. So 8, 16, 32, 64, 128, etc; for heights and widths. So I could have an image 64 x 256 for instance. OK, because neither the height and width of the iPhone screen doesn't fall into the 8, 16, 32, etc., malarky, I was thinking that image sizes destined for the iPhone would be OK, providing they're divisible by 8, e.g. 24 x 96. could anyone confirm this please? And for interest, what is the result of using images in an iPhone app that totally outside of either of these; are the images distorted in any way, or not as clear maybe, can any one say?
---------------------------------------------------------------
Spiral Gyro Games
I've read that it's best (or critical?) to use the power of 8 for image sizes in GS. So 8, 16, 32, 64, 128, etc; for heights and widths. So I could have an image 64 x 256 for instance. OK, because neither the height and width of the iPhone screen doesn't fall into the 8, 16, 32, etc., malarky, I was thinking that image sizes destined for the iPhone would be OK, providing they're divisible by 8, e.g. 24 x 96. could anyone confirm this please? And for interest, what is the result of using images in an iPhone app that totally outside of either of these; are the images distorted in any way, or not as clear maybe, can any one say?
---------------------------------------------------------------
Spiral Gyro Games
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Comments
Graphics are stored in memory in chunks that have dimensions of either: 2,4,8,16,32,64,128,256,512, or 1024
1024 is the largest dimension one of your images can be. If you need something larger, you will need to have two or more actors sitting side by side.
You don't need to let it dictate your design, just be aware of it.
A graphic that is 130x128 needs to be placed into a 256x128 holder. You would be wasting that extra memory for basically no benefit. Memory on these devices is pretty precious, and you don't want to needlessly waste it.
As the devices become faster, it becomes less of an issue.
:-)
---------------------------------------------------------------
Spiral Gyro Games
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps