3d-force-graph
3d-force-graph copied to clipboard
Add capablity to use it with web worker
First of all, I wanna thank you for this great library, it's really cool and it has a great performance
Is your feature request related to a problem? Please describe. I'm using this library with graphs conformed up to 4K nodes and 3K links; initially, all works fine, but I change the visibility of some nodes and when I restore to make all visible again, the page is blocked during some seconds, and it breaks the UX
Describe the solution you'd like Using a web worker to divide the workload will improve it, and avoid the blocks because is using another thread, not the main one
Describe alternatives you've considered https://evilmartians.com/chronicles/faster-webgl-three-js-3d-graphics-with-offscreencanvas-and-web-workers Here is an example of how to implement the web worker with three.js, Idk if it's too hard to implement, but if I can help, I will gladly do
A blocker for this is 3d-force-graph's usage of dom elements. These must go to use it in a web worker.
@L0y3r did you find some solutions? Also need for https://github.com/vasturiano/react-force-graph/issues/469