Atlas Optimization

Discussion in 'Technical Discussion' started by ThomasC, May 11, 2018.

  1. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    hey guys,

    I'm wondering if there are any tips or advice on atlas optimization. I'm running my latest iOS builds through Xcode and it works on some devices, but then crashes in the loading screen on a different device. I'm thinking it may have something to do with too many atlases?

    Any tutorials or tricks on how to optimize atlases?

    thank you :)
     
  2. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    General guideline is no more than around 5 Atlases.
    And if you haven't done so already click on View on the menu bar and select Atlases and then run optimization.
    Also make sure your images are 1:1 scale in the game eg: the more images you reduce in scale within Buildbox the more space they are taking up in the Atlas.
     
    ThomasC likes this.
  3. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    yup. that was 100% correct. I had a ton of large background images in my atlases and had a total of 24 :) down to 5 atlases now and it works on iPhone and iPad now. thanks @AndyG
     
    AndyG likes this.
  4. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    Another trick is to do an Optimize. Then save your game and quit Buildbox. Restart Buildbox, load your game and do another Optimize. Sometimes that clears additional images from the Atlases.
     
    ilikefreegames100 and ThomasC like this.
  5. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    nice. will give that a try. What are your thoughts on loading small images into Buildbox and then blowing them up. Does that save atlas space?
     
  6. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    if it's just a solid color so I can have many different colored backgrounds
     
  7. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    You need to test that. png's are up-scalable to an extent but the recommendation is to go 1:1 to ensure absolute image quality.
     
    ThomasC likes this.
  8. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    yeah using something like 10px X 10px is fine when solid colour's are used.
     
    ThomasC likes this.
  9. patostar

    patostar Avid Boxer

    Joined:
    Jan 27, 2018
    Messages:
    483
    Likes Received:
    86
    Oh! not more than 5 atlases? I am using about 22 lol, and it lags a lot
     
    ThomasC likes this.
  10. ThomasC

    ThomasC Boxer

    Joined:
    Nov 8, 2017
    Messages:
    63
    Likes Received:
    26
    @AndyG thanks man! I'm down to 3 atlases now and running smooth on all devices. I'll definitely be more aware of my atlases when building from now on. Never had that problem before, but so glad to have figured it out and fixed it.

    And yeah for solid color backgrounds I just used some small squares and blew them up 15 or 20x. Saved me tons of atlas space when before the images I was using were 2048 x 2048
     
    AndyG likes this.
  11. AndyG

    AndyG Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,100
    Likes Received:
    915
    wow thats impressive. great job. yeah 2048px is a tad large lol
    glad it all worked out for you :)
     
    Deliverbo likes this.

Share This Page