4 ms·
The WebGL implementation is kinda cheating - shaders use single precision floats and sloppy --ffast-math style optimizations, whereas the JS and WASM versions u
by jsheard 9y ago
The WebGL implementation is kinda cheating - shaders use single precision floats and sloppy --ffast-math style optimizations, whereas the JS and WASM versions use double precision and strict IEEE floating point rules. Hence why the WebGL version produces noticeably different results to the others.
It would be interesting to replace f64 with f32 in the Rust code and see how much difference that makes. Unfortunately there's no --ffast-math in Rust yet AFAIK.