Hello Guest

Author Topic: Newbie question about atlases and drawcalls  (Read 3881 times)

luniac

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 23
    • View Profile
Newbie question about atlases and drawcalls
« 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?

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Newbie question about atlases and drawcalls
« Reply #1 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.