First frame's delta time is not 0 on WebGPU backend

Hey there!

I noticed the delta time of the first frame is not 0 with WebGPU, is this the intended behavior?

I take screenshots of the first frame on a few scenes for end-to-end testing on Cosmos Journeyer and I noticed the tests are giving a different image every time with WebGPU :laughing:

Well yes because WebGPU is asynchronous. Meaning it will let some frames go while initializing while webgl is synchronous (eg blocking the frames while initializing)

1 Like

Okay, that makes sense ^^

I fixed it by using engine["getDeltaTime"] = () => 0; for my tests

2 Likes