2D Toolkit Forum

2D Toolkit => Support => Topic started by: Engelsted on October 01, 2013, 10:27:15 pm

Title: Sprite batching issue
Post by: Engelsted on October 01, 2013, 10:27:15 pm
I am having some problems with the sprite batcher. I have been away from my project for some time and when I booted it up I had way more draw calls than I used to (where I used to have around 8 I would now have 1200). It seems that after I updated unity to 4.2.1f4. Almost all of the sprites I use are from the same collection but each counts as a new draw call.

I have tried reverting to a much older version of my project to test if I had randomly clicked something to change this but it also displayed way to many draw calls.

Is this a known error or am I the only one experiencing something like this?
Title: Re: Sprite batching issue
Post by: unikronsoftware on October 01, 2013, 11:44:44 pm
Is it just that you have the gizmos turned on in game view? Unity counts those for draw calls too...
Title: Re: Sprite batching issue
Post by: Engelsted on October 02, 2013, 07:56:45 am
Yep that was the reason. I had no idea that the gizmos counted as well. Thank you!