Hi there,
When I profile my game on IOS, The Unity Profiler reports the the following :-
SetPass Calls: 24
Draw Calls: 66
Total Batches: 66
(Dynamic Batching) Batched Draw Calls: 8 Batches 2
Which is correct?
Thanks
Hi there,
When I profile my game on IOS, The Unity Profiler reports the the following :-
SetPass Calls: 24
Draw Calls: 66
Total Batches: 66
(Dynamic Batching) Batched Draw Calls: 8 Batches 2
Which is correct?
Thanks
Both. They are not the same thing. Please refer to the statics doc: http://docs.unity3d.com/Manual/RenderingStatistics.html
Ah, that’s not quite what i’m looking for I think. This isn’t the Rendering Stats Window, rather the Profiler.
The Stats window just mentions SetPass, but profiler has both SetPass and Draw Calls, and in my situation it’s possible to increase the Draw Calls, without increasing Set Pass, yet in doing so, notice the performance drop. I was just curious if there is more detail on what the difference is.
I could be wrong but I believe they’re the same thing. Batches = Draw calls and SetPass != Batches. Within the editor, if you look at the stats window and open the profiler you should be able to see that the numbers agree.
Batches can be thought of like draw calls. We set the state once then render all meshes together…
SetPass however requires a completely new render state. This is costly so you’ll want to keep this number to an absolute minimum…
ah ha, thanks, that does make sense. So in an ideal world, I want as few draw calls and set pass’s as possible.
Indeed