Atlas memory [closed]

Kazetoon

  • *
  • Posts: 556
I am not sure how atlas memory works. I have an atlas that stores only 1 image which is a background of size 1920x1280 at 4x. The thing that I don't understand is that the image in the ressource folder has a size of 435kb but the atlas uses 2.3mb. Why is that?

« Last Edit: December 23, 2014, 03:56:26 am by Kazetoon »
Little Drop - Try it out!
     
iphone/ipad Android
Newgrounds Stencyl Arcade Kongregate
Developer Website

Justin

  • *
  • Posts: 4716
Because atlases are about managing game resources in device memory, it's the memory that's important when reporting numbers, not the space required for storage. When an image is loaded to be displayed on your device, it's uncompressed, so it costs a lot more in device memory than it does in storage.

The numbers should be reported as 4 bytes (for rgba) * image width * image height.
For Live Support: Join our discord server and ping me @justin.
I'm most often available between 10am and 10pm Japan time. (GMT+9)

Kazetoon

  • *
  • Posts: 556
Oh, right thanks.
Little Drop - Try it out!
     
iphone/ipad Android
Newgrounds Stencyl Arcade Kongregate
Developer Website