vasturiano / force-graph

Force-directed graph rendered on HTML5 canvas
https://vasturiano.github.io/force-graph/example/directional-links-particles/
MIT License
1.6k stars 247 forks source link

way to performance improvement #201

Open HeeYong2 opened 3 years ago

HeeYong2 commented 3 years ago

hi, it's really useful thank you.

I have a question. I'm using about 8000 node data. or more ! when rendering on screen , it is slow. is it too much data?

anyway. Is there any way to prevent it from slowing down? like "InstancedMesh in threejs? or using clone nodes?

thank you..😓

vasturiano commented 3 years ago

@HeeYong2 the lib should be able to handle that volume of nodes, but it also depends on other factors like how many links you have. And if you're doing any type of custom rendering for the nodes which could be contributing to performance degradation.

Are you able to do a reduced example on https://codepen.io that shows the slowness in your case?