Open smurp opened 6 years ago
Would like more info in meeting from @smurp
@smurp OffscreenCanvas is currently only supported in Chrome : https://caniuse.com/#feat=offscreencanvas
This article is also quite helpful: https://newinweb.com/2018/09/10/offscreen-canvas/
Another article of using offscreen items http://devbutze.blogspot.com/2014/02/html5-canvas-offscreen-rendering.html
OffscreenCanvas ought to provide better performance for HuViz. Imagine! Less jank!
Expected Behaviour
The result should be very smooth animation of the graph because it would be happening on a different thread than the rest of the user interface.
Current Behaviour
Processing incoming triples and performing the commands are operations which take a lot of processor power and are done serially. As a consequence they compete with the animation of the graph itself with the result being visible jerkiness – "jank".
Risk
It could be that the requirement of WebWorker's isolation from the rest of the compute context would mean that this is not practical without considerable reworking of HuViz internals. That would not currently be worth it... It would be relatively quick to tell whether that was blocking the effort though.