2D Toolkit Forum

2D Toolkit => Support => Topic started by: luniac on November 23, 2014, 07:07:19 pm

Title: Newbie question about atlases and drawcalls
Post by: luniac on November 23, 2014, 07:07:19 pm
So from my understanding if I have a sprite collection with a bunch of sprites using the same atlas material and I use only those sprites in a game, my draw call count should be 1.

What if I use 2 atlases with their own separate textures for whatever reason but both atlases use the same material. Will I still get 1 draw call in the game or does it count as 2 draw calls since both atlases have to be loaded into memory or something?
Title: Re: Newbie question about atlases and drawcalls
Post by: unikronsoftware on November 23, 2014, 09:24:23 pm
The material is tied to the texture. You cant have 2 sprite collections with separate textures and the same material, it simply isn't possible. It will have to be done with 2 materials.