-
Notifications
You must be signed in to change notification settings - Fork 52
Open
Description
This is a cool project but how to make it really useful?
Export a renderer to Web assembly so people can still use regular three.js and this library will work as a significant performance booster.
Use case:
- Programmer create their scene and objects in regular three.js
- Programmer starts an instance of WebGlCPPRenderer instead of regular renderer
-WebGlCPPRenderer creates a worker and sends scene data using SharedArrayBuffer (or transferable objects because of current Meltdown situation on each frame)
-worker does all the updates, matrices multiplying, skinned mesh vertices computation and renders scene in Canvas using OffscreenCanvas
Performance boost will be synergetic because it's not only wasm and SIMD perfomance gain, but also freeing main thread by utilising OffscreenCanvas.
Programmer is unaware of how worker version works and uses Three.js just as usual but gets extreme performance boost as all heavy computations happen in workerised renderer!
whulizhendavidson16807
Metadata
Metadata
Assignees
Labels
No labels