I am trying to make sense of batch rendering with sprite atlases in unity.
I got most of the bits cleared. but one thing I’m not sure of is how do the texture atlasses are sent to the render pipeline during batching by Unity?
The reason I’m asking this is that I want to know if the following scenario causes a performance drop rather than a performance gain?
Imagine that we have two sprites with different textures.
each sprite is using a 512 by 512 texture.
The sprite atlas contains two textures of both sprites. so the sprite atlas is 1024 by 1024 (lets ignore the padding for simplicity)
So during the batch draw call, at this point, I PRESUME Unity would be sending the texture atlas along with the other information such as position UV cords etc about each sprite in a batch to the rendering pipeline.
My question is let’s assume that the unity couldn’t batch them together. what happens then? Would unity now would be sending sprite Atlas which is 1024 by 1024 in size to the rendering pipeline twice? one for sprite A and another one for sprite B draw calls?
One last question - I’ve been informed that sprite atlases can DECREASE startup time slightly. I haven’t found more information about this online and I want to make sure I’m not chasing some myth. is this correct?