Heimer icon indicating copy to clipboard operation
Heimer copied to clipboard

Bad performance with two linked nodes far away from each other

Open l3td33r opened this issue 4 years ago • 6 comments

Steps to reproduce:

  1. Create two linked nodes, far away from each other (the greater the distance, the greater the effect)
  2. Zoom into one of them, so that the second one disappears from screen
  3. Performance gradually becomes worse, the more you zoom

2021-03-11_15-47-11

l3td33r avatar Mar 11 '21 14:03 l3td33r

This is a problem in Qt. Not sure what we could do to improve performance. Maybe switch off shadow effects.

juzzlin avatar Mar 11 '21 15:03 juzzlin

If the bug is related to drawing lines offscreen, then how about drawing fake lines, from the node to the approximated position on the screen edge? Instead of the actual lines.

l3td33r avatar Mar 11 '21 16:03 l3td33r

Well, that could indeed work.

juzzlin avatar Mar 11 '21 16:03 juzzlin

This seems to work much better on Windows for some reason, at least on Qt 5.15.2.

juzzlin avatar Nov 01 '21 09:11 juzzlin

This seems to be somewhat fixed in 4.1.0 when the shadow effect optimization is enabled.

juzzlin avatar Mar 18 '23 14:03 juzzlin

Actually, zooming can still be improved so I'll leave this open.

juzzlin avatar Mar 18 '23 14:03 juzzlin