Hello Guest

Author Topic: Platform Specific, Many Sprites and Spanned Sprite  (Read 5148 times)

echeg

  • Newbie
  • *
  • Posts: 5
    • View Profile
Platform Specific, Many Sprites and Spanned Sprite
« on: April 29, 2013, 12:24:02 am »
I have character with ~200 sprites
Platform x1 all sprites are packed in a 1024x1024 atlas
Platform x2 all sprites are packed in a 2k*2k atlas
Platform x4 all sprites are packed in a 4k*4k atlas

In docs "Avoid platform specific atlases on spanned sprite collections at all costs. Its much cheaper and more reliable to do it yourself."

I've read that the 4k textures can not reproduce all of the devices. What to do in this case? Put a check mark in the "Multiple Atlases"?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Platform Specific, Many Sprites and Spanned Sprite
« Reply #1 on: April 29, 2013, 10:21:08 am »
What platform will be using the 4x textures?
iPad3 and above support 4k x 4k textures anyway. I'm guessing that will be the only platform using it?

echeg

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: Platform Specific, Many Sprites and Spanned Sprite
« Reply #2 on: April 29, 2013, 04:33:32 pm »
Hmm.
320 480 - x1
640 960 - x2
1280 1920 -x4

I think all new android with 1080p (many) or Samsung Nexus 10 (resolution  2560x1600)

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Platform Specific, Many Sprites and Spanned Sprite
« Reply #3 on: April 29, 2013, 05:03:51 pm »
Those devices don't support 4096x4096 textures? Thats pretty rubbish if so :(

Anyway, you can enable multiple atlases. The problem is because the sprites can end up anywhere on the atlas or any number of atlases, then you end up with unpredictable draw call count. If you don't have that many sprites, then that won't matter.
« Last Edit: April 29, 2013, 05:38:52 pm by unikronsoftware »