2D Toolkit Forum
2D Toolkit => Support => Topic started by: Roundabout1776 on October 21, 2014, 10:18:25 am
-
Hi, i'm using 2.4.0
At some point (can't remember when exactly) I started to get way too many draw calls for a very simple game.
I'm using a single atlas (4096x4096) and got around 60 sprites. 50 of them have simple box collider generated by CreateSimpleBoxCollider()
So how can I solve this kind of problem?
(http://puu.sh/ckzfa/dfa70dce08.png)
-
Are those sprites static? If so, then you can merge them into a static sprite batch: http://www.unikronsoftware.com/2dtoolkit/docs/latest/tutorial/using_the_static_sprite_batcher.html
-
Hi AlexGK
No, those sprites are not static. also i noticed that single sprite uses 4 drawcalls + 2 draw calls if there is collider on it
-
The draw call count includes invisible gizmos, these don't exist in game. Don't ask me why, thats what Unity does. It will go back down once you turn off gizmos in the game view.
-
I was about to have a heart attack with 4k draw calls... Turning off gizmos statistics went off to 9 draw calls ;D