exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
997 stars 117 forks source link

Use Node workers #130

Open avaer opened 6 years ago

avaer commented 6 years ago

Workers (based on WebWorkers) are coming in Node 11: https://github.com/nodejs/node/labels/worker

Right now we hack around the lack of threads with child-process-thread but it's better to just use the node solution, which seems equivalent.

Note that this is not the same thing as our usage of vm-one, which is not about threading, but fast context isolation.

avaer commented 6 years ago

It's in node 10.5.0 under --experimental-worker: https://nodejs.org/en/blog/release/v10.5.0/