Graphics profiler GFX.WaitForCommands, What is does it mean?

I get some long frames when rendering on Android.

On these long frames GFX.WaitForCommands() appears on the Rendering thread and I’m wondering what it is and why it might happen.

The difference between a short and long frame is 6ms for rendering and 26ms for rendering.

Any advice would be helpful.

Profiler screenshot attached.

Slow frame with lots of GFX.WaitForCommands() calls (the grey boxes down the bottom)

Fast frame with almost no GFX.WaitForCommands() calls.

Hi!
It means that the thread that submits commands to the GPU is waiting for stuff to do.

Ok, so the CPU thread is bound in this case and not sending commands to the render thread fast enough?

Yes, looks like it.

@Nouman_Maqbool you can try to do less things on the CPU or do them faster.

There’s a lot of resources about CPU frame time optimisation for Unity.