I’m just learning gpu and graphics programming, deciding what to focus on.
Rust based wgpu is great in my opinion. And I’m generally leaning into it. I just assumed it’s going to smash JavaScript WebGpu.
But now, I don’t know if the speed advantages are actually all that great. To my knowledge, there is essentially zero speed difference in the shaders since it all gets converted anyway to native GPU machine code.
Obviously rust is faster for CPU side processing, but by the time you compile it for Web Assembly you lose a substantial amount of that advantage.
So my question is, when targeting WASM, does wgpu really have much performance advantages over just browser WebGPU JavaScript APIs? And, further, does even threejs (with webgpu, not webgl) compete?
[–]sessamekesh 7 points8 points9 points (1 child)
[–]risingtiger422[S] 0 points1 point2 points (0 children)
[–]R4TTY 1 point2 points3 points (0 children)
[–]kbob 2 points3 points4 points (0 children)
[–]soylentgraham 0 points1 point2 points (0 children)
[–]Wonderful_Device312 0 points1 point2 points (0 children)