Packer package size error in libgdx

I make a texture packer in Libgdx in which If I take a packer size of 2.048 * 2.048, which only makes one packer image of 3.14 Mb in size, and if I take a packer size of 1.024 * 1.024, then it will make four packer images and the total image size all four packers is 2.94 MB. What size packer should I prefer?

+4
source share
1 answer

You should prefer 1024 * 1024

Pros:

This image resolution can be downloaded to ldpi phones such as Samsung Galaxy Y.

2048 * 2048 will take 16 MB of graphics memory

while 1024 * 1024 will take 4 MB

so i think you can go with 1024 * 1024

Also, I would suggest that if you use images without an alpha value (Backgrounds), you can later hide .png to .jpg and edit the package file with the image name .png to .jpg.

Hope this helps u

+3
source

Source: https://habr.com/ru/post/1488025/


All Articles