O'Reilly logo

iOS Game Programming Cookbook by Bhanu Birani, Chhavi Vaishnav

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a texture atlas

The texture atlas is a way of combining all the app assets (that is, images) into one or more larger images to improve the performance of the app so that the app can draw multiple images in a single draw call of the scene that is rendered. For example, if we have more than one image file to be loaded in the sprite, SpriteKit will perform one drawing call for each sprite. However, if we combine all the required images in one image file, then SpriteKit can render all the sprites in one draw call that uses very less memory to do so. It is recommended to create an atlas of all the required images for any game project.

Xcode has the capability of building texture atlases for your collection of images to make it a larger image, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required