Inspector WebGPU GPU Frame Time at 0

On WebGPU the frame time values are always at 0.

PG: https://playground.babylonjs.com/#HH8T00#1
^ Select WebGPU as main engine

Yes this is expected. We do not have timer queries in WebGPU (Is it supported yet @Evgeni_Popov ?)

1 Like

It is supported, but Chrome must be launched with a special flag, as exposing timer queries may have security implications: --enable-dawn-features=allow_unsafe_apis

You can also set this option in chrome://flags:

1 Like

Would still be nice if GPU Frame Time support was added for WebGPU in bjs, even if you’d have to toggle something in chrome flags :+1:

It is supported, just launch Chrome with the flag and you will some values for GPU frame time :slight_smile:

2 Likes

@Evgeni_Popov Good day, I’m new to this but I have tried what you have suggested, which is adding the flag, but I still can’t seem to get any data for the GPU Frame time. Could I be missing something?


Thank you in advance for the response.

I found the fix 5 minutes after posting this. I was missing the " enableAllFeatures: true" property in my WebGPUEngine constructor call.

1 Like