Image 'FILE' sizes (incorrect??)

SaveDaveSaveDave Member Posts: 140
edited November -1 in Working with GS (Mac)
In trying to increase my game performance, i have reduced all in-game images to 4k using 8-bit png conversion. All files show as 4k when you look at the file info in Finder.

Upon placing these images into a new document in Gamesalad, as well as preview testing on the iphone, the file sizes are being shown as 64k.

With over 150 possible images in one level, the loading time is far, far too long and all images were reduced in the hope of speeding this up.

If anyone could help me understand what is going on, that would be greatly appreciated.

regards

Comments

  • SaveDaveSaveDave Member Posts: 140
    P.S, all images are currently 36 x 36 pixels.
  • SaveDaveSaveDave Member Posts: 140
    SaveDave said:
    P.S, all images are currently 92 x 122 pixels.

  • Rob2Rob2 Member Posts: 2,402
    How are they being shown as 64k, where are you getting that information from?
  • SaveDaveSaveDave Member Posts: 140
    It is being shown on the left side of the screen under memory usage when previewing on the device.
  • PhoticsPhotics Member Posts: 4,172
    Powers of 2...

    A 33x33 image is treated like a 64x64 image.

    So, that 92x122 image is treated like a 128x128 image.

    If you're interested in saving RAM, that image would have to be reduced to 64x64.

    The Unofficial GameSalad Textbook has a good example about this matter. Heh, like a 513x513 image is treated like a 1024x1024 image. So instead of a 512 KB image (512x512), those two extra pixels use 2 MB. That's four times as much.
  • old_kipperold_kipper Member Posts: 1,420
    If you reduce the 36X36 to 32X32 you will quarter the memory for the graphics.
  • SlickZeroSlickZero Houston, TexasMember, Sous Chef Posts: 2,870
    Yep, here is a quick table of the file sizes. If you go over by 1 number, it jumps to the next size, and uses the memory from the bigger dimensions, as was already stated...

    8X8

    16X16

    32X32

    64X64

    128X128

    256X256

    512X512

    1024X1024

    You can mix and match sizes, like 128X1024 and such.
  • Rob2Rob2 Member Posts: 2,402
    Memory usage on device will be four bytes per pixel, no relation to compressed file size at all.
Sign In or Register to comment.