News for hackers. Stuff that matters.
Re:Bevy and WebGPU by markdog12 on Thursday May 18, 2023 @08:46PM (#35996393)
Very cool.

I noticed the fox demo's wasm_example_bg.wasm is 22MB. That seems large? Is there code splitting?

Also, seems streaming is broken:

wasm_example.js:285 `WebAssembly.instantiateStreaming` failed because your server does not serve wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error: TypeError: Failed to execute 'compile' on 'WebAssembly': Incorrect response MIME type. Expected 'application/wasm'.

Re:Bevy and WebGPU by _cart on Friday May 19, 2023 @02:01PM (#36004974)
Turns out we weren't optimizing these builds for size. We just merged a fix! We've also set the right content type on cloudflare to enable streaming/compression. The raw size is down to 13mb and the actual download size (with compression) is now 3.9mb. https://github.com/bevyengine/bevy/pull/8636
Re:Bevy and WebGPU by _cart on Friday May 19, 2023 @02:02PM (#36004988)
Should roll out soon
Re:Bevy and WebGPU by markdog12 on Friday May 19, 2023 @08:49PM (#36008399)
Yeah, MUCH better now.