Experiment running D3 force directed graph simulation in a web worker while using pixi.js for the rendering.
The CPU-intensive simulation runs entirely in the web worker at a lower framerate while the main rendering thread can run independently. The nodes positions are then copied to the main thread and interpolated at each frame so that the movement looks smooth.
- d3-force – force directed graph simulation
- pixi.js – fast 2D WebGL renderer
- stats.js – JavaScript Performance Monitor
- dat.gui – lightweight controller library
- https://bl.ocks.org/kirjavascript/dcafa2b3a53cbcc9c5de19b938b92119
- https://observablehq.com/@zakjan/force-directed-graph-pixi
MIT licensed
Copyright (C) 2020 Markus Lerner, http://www.markuslerner.com