Optimize Atlasses

Discussion in 'Buildbox General Discussion' started by blad300, Oct 29, 2016.

Tags:
?

Optimize atlasses

  1. 1 atlasses 4000 width x 4000 height

    0 vote(s)
    0.0%
  2. 2 atlasses 2048 width x 2048 height

    100.0%
  1. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    Can anyone know how is better ?
     
  2. Brocky120

    Brocky120 Avid Boxer

    Joined:
    May 2, 2016
    Messages:
    127
    Likes Received:
    27
    2 Atlasses IMO
     
  3. jcalle

    jcalle Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,178
    Likes Received:
    531
    Try to change to 20 Atlasses to 320x240px, the time of charging is very fast.
     
  4. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    So if I have a lot of small graphics it would be better to have more atlases smaller sized than 2 big ones (2048x2048)?
     
  5. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,234
    Likes Received:
    697
    Atlases are there for reason. If more atlases would be better than one, then you would not need atlases because your sprites are like small individual atlases... Generally speaking less atlases providing better memory footprints and rendering performance. But you also do not want to use too big atlases with unused spaces. Those would just occupy space in graphics memory and you will never use them.

    So for example you have two atlases, the first is full with small sprites and the second only have few of them, then the second one is just wasting memory on your graphics card. So you either increase the size of the first to fit everything in making sure it is not too big so that there will be not much of slack space, or you decrease the size of the second one to small enough to eliminate waste space. Other consideration is that you generally want to keep animation sequences in a single atlas - it is because of how graphics card handling these atlases, you do not want context changes too much. I am not sure how BuildBox automatic atlas generation algorithm works but I believe it tries to keep them in one place. If it does not happen you may can play with the sizes in a way that big sprites like background images and large menu decorations will only fit on the second atlas, while the first holds smaller ones only.
     
    Christoph, trygii and oni3350 like this.
  6. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    That i did, i have 2 atlases one full and another 5 images, so i increase the size of first and the game load ok .
    This is the reaseon i ask here, sould be better to make 2 sprites with the same images ?
     
  7. Christoph

    Christoph Miniboss Boxer

    Joined:
    Oct 4, 2015
    Messages:
    2,807
    Likes Received:
    2,309
    Last edited: Oct 30, 2016
  8. Andy

    Andy Miniboss Boxer

    Joined:
    Sep 24, 2015
    Messages:
    2,152
    Likes Received:
    1,545
    Generally speaking less atlases is better. Older devices can't load atlases larger than 2048x2048. Also, it takes four 2048x2048 atlases to equal one 4096x4096 atlas.
     
    blad300 and trudnai like this.
  9. blad300

    blad300 Serious Boxer

    Joined:
    Oct 8, 2015
    Messages:
    515
    Likes Received:
    276
    @Andy thks for your answer
     

Share This Page