exokitxr / avatars

Avatar system for Exokit
https://avatars.exokit.org
70 stars 28 forks source link

Rust-WASM rewrite for the update() method. #39

Closed ChristopherTrimboli closed 2 years ago

ChristopherTrimboli commented 4 years ago

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.

avaer commented 4 years ago

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..

ChristopherTrimboli commented 2 years ago

old PR