bleathem / keynote2015-beacon

Location-scanner multi-foci force-layout using d3.js and Rx.js
8 stars 9 forks source link

Use a fixed number of SVG nodes in the visualisation. #3

Closed bleathem closed 9 years ago

bleathem commented 9 years ago

Currently we see a drop below 60 FPS when a node is removed from the map (via a timeout). Since we have a fixed number of beacons we can have a fixed number of svg nodes, and toggle their visibility rather than remove them from the map. This should yield a more consistent framerate.

bleathem commented 9 years ago

This GC event causes a noticeable delay in the node movement. I hope resolving this issue will reduce the amount of GC overhead. gc