Performance Optimization when rendering more than 12k elements
Hi,
I am trying to render 5k nodes and 7k links using the 3d force graph. The performance significantly drops after 7k elements are rendered. Tried adding nodes dynamically but the same thing happens. Is there any option to extract more performance for drawing large graphs?
I am interested in this as well . We have to build in 15k elements and was hoping if there are any other suggestions for optimizations we can do to reduce lags when one has so many elements .
- During loading
- During interactions etc.
Please do let us know
There are various performance calibrations that can be used to ease the rendering of larger graphs. Some of the more common ones are:
- Bypass the build-in animation phase of the graph, and jump directly into the final state instead. You can do this with
warmupTicks={100}(change value to taste) andcooldownTicks={0}. - Simplify the geometry of nodes and links by not using custom complex shapes (
nodeThreeObjectorlinkThreeObject) and possibly lowering the sphere's resolution (nodeResolution). - Pre-filter the data to decrease the quantity of elements to render, if at all possible. Or alternatively group nodes into larger elements whose hierarchy can be extended on demand, similar to this example: click to collapse/expand nodes.
Thanks. That helped a lot. I was already collapsing the nodes so the initial render was fast. Simplified the nodeThreeObject geometry which improved the performance quite a bit.
@nirmal495 #202 may also be helpful. cheers!
@diragb Thanks for the link to issue. Some of the snaps look amazing.