Closed ChristopherTrimboli closed 2 years ago
The idea of this is rewrite the update() method in Rust and compile to WASM for "perf gains".
update()
This requires also rewriting any used imports such as: THREE, vrarmik, MicrophoneWorker and skeletonString, etc.
The goal for this is to supply a built WASM npm module that you can import update() into JS and run the update() method in WASM.
Most of this work is translating JS style code into Rust and going through all the depedencies and rewriting them into Rust.
There is a /three directory for all things THREE. The directory structure matches three.js's structure in their repo.
/three
This will provide a good base for maybe an entire rewrite of three.js into Rust-WASM.
Work is ongoing.
Thanks for starting on this!
There are a lot of debug files committed here that might be good to keep out of the git history..
old PR
The idea of this is rewrite the
update()
method in Rust and compile to WASM for "perf gains".This requires also rewriting any used imports such as: THREE, vrarmik, MicrophoneWorker and skeletonString, etc.
The goal for this is to supply a built WASM npm module that you can import update() into JS and run the update() method in WASM.
Most of this work is translating JS style code into Rust and going through all the depedencies and rewriting them into Rust.
There is a
/three
directory for all things THREE. The directory structure matches three.js's structure in their repo.This will provide a good base for maybe an entire rewrite of three.js into Rust-WASM.
Work is ongoing.