2D Toolkit Forum

2D Toolkit => Support => Topic started by: jrhee on June 11, 2014, 10:14:36 pm

Title: diced sprites and batching
Post by: jrhee on June 11, 2014, 10:14:36 pm
Hi,

Just curious- does setting render mesh to Diced break batching? I'm noticing when I have two diced sprites in a collection, it takes two draw calls to render them, but when I set render mesh to default they're drawn in one. Is this expected?

Thanks!
Title: Re: diced sprites and batching
Post by: unikronsoftware on June 11, 2014, 10:51:48 pm
Unity will only batch objects < a certain number of triangles.
http://docs.unity3d.com/Manual/DrawCallBatching.html

It depends on how much you subdivided the diced mesh is.
Title: Re: diced sprites and batching
Post by: jrhee on June 12, 2014, 12:12:13 am
Ah missed that- right on, thanks.