#Frame debugger showing 42 draw calls, game view shows over 100.

1 messages · Page 1 of 1 (latest)

plucky juniper
#

I've been working on optimizing my game by ensuring all my shaders (written in HLSL, rather than made in ShaderGraph) are SRP batcher compatible.

I noticed recently that my batch/draw call amount was higher than expected according to the game view statistics but when I opened the frame debugger, I saw that I had only 42 rather than 180+. Am I missing something?

I assume I should believe the frame debugger over the game view statistics(which I've heard is notoriously unreliable) but I want to make sure I'm not missing something important.

visual plover
#

Afaik the statistics window was just not designed or updated to take SRP batching into account. But the numbers at the side in the frame debugger does.

The "Batches" listed in stats is actually counting "draw calls" iirc. (Which you can view in the frame debugger under the details on the right)

Unlike other batching methods, SRP Batching doesn't combine draw calls - just the setup between them, usually making them cheaper overall.

plucky juniper
#

Alright thanks

fair escarp
#

Instancing too seems to be very inaccurate when it comes to the statistics window