Draw calls in Node Render Graph with GlowLayer

Hi everyone,

Please have a look at this playground (using this nrg).

If I disable the two meshes in the Inspector, the draw calls go down as expected:

  • +2 draw calls for the red box (in the GlowLayer)
  • +1 draw call for the blue plane (not in)

But then, despite being no meshes left, there is 6 draw calls left. Where are they coming from?


Did some more testing meanwhile. I removed the GlowLayer from the graph. Now, when disabling all meshes, there is 1 draw call left.

So it seems, the NRG itself takes 1 draw call. But this leaves 5(!!) draw calls that are caused by an empty GlowLayer?

Best wishes
Joe

Seems that Glow layer adds 5 draw calls + 1 for each included mesh - Babylon.js Playground

Yes, the glow layer does 4 blur passes (2 in the X direction, 2 in the Y direction).

You can set debugTextures: true when you parse the node render graph and see the textures in the inspector:

Spector is also invaluable to understand what’s going on in a frame.

2 Likes

Sorry, guys. The GlowLayer does that irrespective of framegraph or not. Just checked the docs. Totally forgot about that :flushed:

1 Like