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
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.
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
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.
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?
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.
@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