Results 466 comments of juj

Such a `DisplayFrameRateObserver` would be a fantastic solution. 👍

Today I prototyped a rather ridiculous implementation that aims to benchmark the native refresh rate of the display, to provide a new variable `screen.animationFrameInterval` that specifies the time between subsequent...

Yeah, the whole approach is very stinky. > ended up ditching that approach and instead just compute the average over enough samples (around 60)... The problem that makes this infeasible...

> One suggestion was `why can't it check that canvas.controlTransferredOffscreen isn't true/set before proxying the function to the main thread?` not sure if that is still the preferred approach and...

The per-draw-call temp JavaScript garbage that is generated in emulation code that counts the max index is worrying, as past experience shows that browsers will quickly deteriorate to microstuttering in...

https://github.com/emscripten-core/emscripten/blob/main/test/webgpu_basic_rendering.cpp shows an example how to use `emscripten_set_main_loop()` with WebGPU: 1. A callback is registered with [emscripten_set_main_loop()](https://github.com/emscripten-core/emscripten/blob/3631cb4b2e937f76f796bf313a71281194a1d403/test/webgpu_basic_rendering.cpp#L417) 2. Then the application "falls out of main" to yield execution back to...

After sidestepping the above assert(), there is still some issue at play with respect to the async proxied WebGL Worker mechanism and Emscripten's test harness : if I run the...

Oh, and there's a long standing issue that was never fixed that is needed to make the test get past SDL2 context init: https://github.com/emscripten-core/emscripten/issues/7100 That can be fixed with this...

> I don't see any way in which the `Cannot set timing mode for main loop since a main loop does not exist` warning could ever be an error so...

Turns out https://github.com/emscripten-core/emscripten/pull/25439 was all that was needed to fix the test in Firefox.