3d-force-graph icon indicating copy to clipboard operation
3d-force-graph copied to clipboard

Add capablity to use it with web worker

Open L0y3r opened this issue 5 years ago • 2 comments

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

L0y3r avatar Jul 29 '20 22:07 L0y3r

A blocker for this is 3d-force-graph's usage of dom elements. These must go to use it in a web worker.

FallingSnow avatar Jul 26 '21 00:07 FallingSnow

@L0y3r did you find some solutions? Also need for https://github.com/vasturiano/react-force-graph/issues/469

happylolonly avatar Oct 31 '23 08:10 happylolonly