Menu

How to Create a Texture Atlas in Unity (and Actually Cut Draw Calls)
πŸ“°

How to Create a Texture Atlas in Unity (and Actually Cut Draw Calls)

DEV CommunityΒ·Kashif NazirΒ·16 days ago
#lWtBO8Ov
#dev#mesh#atlas#draw#texture
Reading 0:00
15s threshold

You combined your meshes, but the draw calls barely moved. The reason is almost always materials: every unique material is a separate draw call, and no amount of mesh combining helps until your textures share one. A texture atlas fixes exactly that.

Unity issues roughly one draw call per material per object. A scene with 200 props on 200 materials costs ~200 draw calls, even if every prop is a 12-triangle box. Mesh combining merges geometry, but combined meshes still referencing 15 different materials still cost 15 draw calls. The material count is the ceiling; geometry merging only gets you to that ceiling.

A texture atlas attacks the ceiling directly. Pack 20 small textures into one big image, point every mesh at that single texture through one shared material, and 20 draw calls become 1. It is the single highest-leverage optimization for prop-heavy, modular, or kit-bashed scenes.

The trick is UV remapping.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.