dangerbird2 parent
For geometry heavy stuff, web workers (possibly in addition to wasm) be super helpful in preventing the browser from blocking while number crunching.
wouldn’t shader libraries be better?
Ideally yes, but the lack of geometry/tessellation/compute shaders in WebGL limits what you can do on the GPU.
Geometry processing that's more complex than moving vertices around has to be done on the CPU for now.
>Geometry processing that's more complex than moving vertices
Have you heard about our lord and savior abstract vector spaces?
everything is just moving vertices around in linear transformations.
you should check out http://gpu.rocks/ pretty awesome GPGPU js library.