Results 466 comments of juj

> An application often can't simply reuse the same resource in multiple places in their frame (meaning: textures A and C usually can't literally be the same resource), because the...

> bz gave me some indication that a synchronous `recvMessage` could be palatable, which might solve most of our problems. This would be interesting if this is the case! Me...

While Emscripten WebGPU headers don't yet integrate OffscreenCanvas, [this offscreen_canvas.c](https://github.com/juj/wasm_webgpu/blob/main/samples/offscreen_canvas/offscreen_canvas.c) example (also a variant with [pthreads](https://github.com/juj/wasm_webgpu/blob/main/samples/offscreen_canvas/offscreen_canvas_pthread.c) and [proxy-to-pthread](https://github.com/juj/wasm_webgpu/blob/main/samples/offscreen_canvas/offscreen_canvas_proxy_to_pthread.c)) shows one approach of how this can be achieved in user projects...

> It's not a workaround, it's a bug in emscripten One person's bug is another person's unsupported use case. I agree we should add support for these types of scenarios....

I wonder was there a Binaryen pass that would have split too large functions to smaller ones that would not exceed the local count? Recently I've been struggling with some...

Sorry for the delay, I was on a leave for a while there. Updated to address the review. > So the pre-allocated stack is for thread-local storage? @juj With Wasm...

Hey, updated the PR to latest main. Any more reviews, or good to land?

> @juj, what currently happens if you try to use pthread API from wasm workers? Do we have assertions for that of will things fail in odd ways like this?...

If Audio Worklets are involved in this scenario, then I am guessing that the issue might have something to do with these code lines: https://github.com/emscripten-core/emscripten/blob/1375c03ad476dba8f20c9c3919ef57f1af43e36b/system/lib/pthread/emscripten_futex_wait.c#L127-L129 In the above code, Audio...

> If I comment out line 35 in emscripten_futex_wake.c it seems to work without issues My impression of the situation is that if both audio worklet and main thread happen...