iPad, power of 2 images?

fzeedfzeed Member Posts: 247
edited November -1 in Working with GS (Mac)
Do i need to worry about my images being divisible by 2 and having even pixel dimensions and stuff like that? I currently do that for iPod stuff but is it necessary for iPad?

Comments

  • old_kipperold_kipper Member Posts: 1,420
    Yes, and also keep in mind the powers of 2 for image dimensions.

    kipper
  • DoManDoMan Member Posts: 102
    When you say that, do you mean every picture will be four times smaller than on screen? (like the retina display) And for the ^2 for images, does that mean just keeping your image dimensions in even numbers - like 234 instead of 237 or 23?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi DoMan,
    DoMan said:
    When you say that, do you mean every picture will be four times smaller than on screen? (like the retina display)

    No, images come at the sizes you want on the iPad. There is no retina display (yet?...) on the iPad so Resolution Independence is not relevant.
    DoMan said:
    And for the ^2 for images, does that mean just keeping your image dimensions in even numbers - like 234 instead of 237 or 23?

    What kipper is saying: an example, say you have an image which is 256 x 258. This is fine as the dimensions are divisible by 2, but it will be allocated memory as if it was 512 x 512 (because the 258 dimension tips it into the next "power of 2"). So ideally try to keep all images to, or just below 2,4,8,16,32,64,128,256,512 and the max. of 1024. (But don't worry too much, if an image is around 200 let's say, that's fine, just be aware it'll be allocated memory of a 256 image, etc.)

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    gyroscope said:
    Hi DoMan,

    No, images come at the sizes you want on the iPad. There is no retina display (yet?...) on the iPad so Resolution Independence is not relevant.

    What kipper is saying: an example, say you have an image which is 256 x 258. This is fine as the dimensions are divisible by 2, but it will be allocated memory as it was 512 x 512 (because the 258 dimension tips it into the next "power of 2". So ideally try to keep all images to, or just below 2,4,8,16,32,64,128,256,512 and the max. of 1024 if they "tip over".

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • DoManDoMan Member Posts: 102
    Oh, so I must keep all my images as close to the sizes as those ones, and not above them, otherwise GS will think it is the next size in that list?
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Yes, that's right. It's no big deal though if you've not many images/sounds, etc; but with larger projects, every bit of memory management helps!

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • DoManDoMan Member Posts: 102
    And if you have lot's of the same actor, with a bad image size? Will that slow down the game's performance, if so, my game to needs to be practically rebuilt...
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    "Bad" image size itself won't slow the game's performance so much if they're all the same actor but still probably best to resize them. Just drag them into the Images well and providing it's the same name, a dialog will appear giving you the option to replace the images in one go. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • fzeedfzeed Member Posts: 247
    Thanks!
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Whoops, I forget you started this thread, fzeed! You're welcome (and from kipper as well, I'm certain - don't like to call him old... ;-)

    :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • old_kipperold_kipper Member Posts: 1,420
    Old is just a fact but thank you for sparing me the reminder....

    A somewhat dashing for his age... Kipper
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    I'm sure of that. :-)

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.