On WebGPU the frame time values are always at 0.
PG: https://playground.babylonjs.com/#HH8T00#1
^ Select WebGPU as main engine
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 ?)
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
:
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
@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.