Sam Clegg
Sam Clegg
> > If there is some way you could reduce this something smaller, perhaps using the simple `test/hello_world.c` program that would be great. Or perhaps you could try to figure...
Yes, that sounds like a good fix. Would you be able to submit a PR perhaps?
First of all I will just note that for `mmap` of file we already end up using the `mmapAlloc` JS function which calls `zeroMemory` which in turn calls `HEAP8.fill`, so...
@mannkdev if we were to implement this via proxying all WebGPU calls back to the main thread would that solve your program? @kainino0x do you think such an approach would...
@mannkdev do you actually want multiple threads to be able to make WebGPU calls? Or will all of them come from the same thread?
> Thanks for the suggestion, it hadn't occurred to me that malloc could be meaningfully better here. Thankfully we don't have bare mmap calls in our codebase - they're wrapped,...
> > > Thanks for the suggestion, it hadn't occurred to me that malloc could be meaningfully better here. Thankfully we don't have bare mmap calls in our codebase -...
BTW I am adding an underscore prefix to the internal memset/memcpy helpers: https://github.com/emscripten-core/emscripten/pull/21622
You don't need `-sEXPORT_ALL` or `-sLINKABLE` when building a side module. Can you see if removing those flags fixes the issue?
Note that when you build side module there is no `.js` that gets generated, the `.js` file is built when you build the main module. What are the flags you...