microsoft / msagljs

A JavaScript graph layout engine: port of MSAGL
https://microsoft.github.io/msagljs/
MIT License
148 stars 15 forks source link

[renderer] WIP: non-blocking layout on worker #22

Closed Pessimistress closed 2 years ago

Pessimistress commented 2 years ago

Run the webgl-renderer example. When layout is pending you can still interact with the UI.

gameofthrones.json with default settings:

graph transfer to worker 615 ms
layoutGeomGraph: 5512.930908203125 ms
graph transfer to main thread 232 ms
initial render: 95.409912109375 ms

gameofthrones.json with edge bundles:

graph transfer to worker 961 ms
layoutGeomGraph: 51739.265380859375 ms
graph transfer to main thread 500 ms
initial render: 41.818115234375 ms