kripken/ammo.js

Wasm SIMD

fabiodr opened this issue · 3 comments

The build can already take advantage of Wasm SIMD for compatible browsers or does it need some changes before?

The build would need to be done with SIMD enabled (-msimd128).

Great! So, the code doesn't need to be changed because it was already prepared for SIMD and Emscripten does the work of compiling for the new SIMD spec?

Has the SIMD build been tested?

Is there a performance comparison somewhere?

I don't know about the Bullet source code, though - not sure how to enable SIMD there. But -msimd128 would enable the wasm feature in the compiler, and the autovectorizer, at minimum.

I haven't tested that feature myself.