sho-87 / rok-talents

Talent builder for Rise of Kingdoms
GNU General Public License v3.0
12 stars 12 forks source link

jsplumb line repaint speed #26

Open sho-87 opened 4 years ago

sho-87 commented 4 years ago

Describe the bug Due to the number of lines drawn, repainting all lines on window resize can be quite slow. Is there a more efficient solution that allows for faster repaint? This is particularly a problem on low powered mobile devices

Expected behavior Page refreshes, pan/zoom, should not be causing any noticeable lag on any devices

Additional Information:

sho-87 commented 4 years ago

Use jsplumb show/hide instead of full redraws?

https://docs.jsplumbtoolkit.com/toolkit/current/articles/rendering#visibility

sho-87 commented 4 years ago

there are also other graph rendering engines worth looking into: https://github.com/jacomyal/sigma.js