Skip to content

Experiment running d3 force directed graph simulation in a web worker while using pixi.js for the rendering

License

Notifications You must be signed in to change notification settings

markuslerner/d3-webworker-pixijs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

D3 – Web Worker – pixi.js

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.

Demo

Used libraries

  • d3-force – force directed graph simulation
  • pixi.js – fast 2D WebGL renderer
  • stats.js – JavaScript Performance Monitor
  • dat.gui – lightweight controller library

Based on:

License

MIT licensed

Copyright (C) 2020 Markus Lerner, http://www.markuslerner.com

About

Experiment running d3 force directed graph simulation in a web worker while using pixi.js for the rendering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published