Open kottkrig opened 6 years ago
So it looks like the worst comes from when dragging a node: https://github.com/mozilla/lightbeam-we/blob/master/src/js/viz.js#L375
I see in some cases requestAnimationFrame even on a powerful machine take +150ms
I think there are a few things we could do here:
Thanks @kottkrig for reporting the issue.
@jonathanKingston yes there is scope to improve, looking into it.
I managed to get the graph vastly faster by removing the manual ticking without causing obvious bugs.
My hunch is we should be doing something smarter there with ticking and rate limiting at times of stress. I also couldn't work out what the alpha stuff was doing and the documentation isn't super clear.
I think we might have just made this worse with the latest update. We should look into querying the history in chunks before rendering to reduce the time to showing some nodes on the graph. The latest update actually crashed my browser @princiya. I don't have time at the moment to debug this though so help very much wanted here.
I'm seeing very low framerates on my machine when looking at the visualization. It makes it very difficult to navigate inside of it.
According to the dev tools I get an average framerate of 6,65 FPS and minimum framerate of 1,66 FPS.