Jump to content

Max size of srpitesheet allowed?


spinnerbox
 Share

Recommended Posts

This is a question for more experienced than me working with Phaser.

 

I have a spritesheet which is 1400 x 5320. The game works, no warnings no errors and it seems this size is allowed. 

 

Are there any limitations of a spritesheet which I should follow when porting the game to mobile or desktop? Should I cut the image in two or three smaller images?

Link to comment
Share on other sites

Hi! I think this depends on target device. If you run on PC you are probably OK, as modern graphics cards are very powerful. But, if you want to be sure, it works on mobile devices you shoud be aware, that safe size is 2048x2048 - most devices will be happy with this. Or if you target only newer devices you can increase to 4096x4096. The size you use (1400x5320) is not good in my opinion, because if forced to POT texture it will result in 2048x8192. OpenGL ES 2 cannot handle non-POT textures, so every non-POT texture is changed to nearest POT texture, which is wasting memory space. Rearrange your spritesheet to 2048x4096 and it will save lot of memory.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...