| I'm developing a wasm game, and currently I am targeting WebGL2 in order to run in iOS Safari. Me (and others, I'm sure) are currently waiting for WebGPU [1] to land in Safari so it will make sense to target it. WebGPU allows for simplified porting of desktop games to the web, such as WGSL shaders [2] WebGPU will be the next big thing [3], and currently it is enabled on Chrome Windows/macOS, and can be enabled in Firefox Nightly with a config setting. There's also an issue with limited language support. For example golang still has some stuff left to stabilize around the WASI, and the resulting binaries are rather large. In rust, things look better. I can compile a release of my game to about 8MB .wasm file, which gzipped sits at around 3MB. Most other tooling I have looked at produces far larger wasm binaries, which makes it a no-go for mobile apps. Hopefully, 2024 will be the year of WebGPU! 1: https://caniuse.com/?search=webgpu 2: https://www.w3.org/TR/WGSL/ 3: https://github.com/gpuweb/gpuweb/wiki/Implementation-Status |
[1] https://github.com/speps/tt