Bad performance with two linked nodes far away from each other
Steps to reproduce:
- Create two linked nodes, far away from each other (the greater the distance, the greater the effect)
- Zoom into one of them, so that the second one disappears from screen
- Performance gradually becomes worse, the more you zoom

This is a problem in Qt. Not sure what we could do to improve performance. Maybe switch off shadow effects.
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.
Well, that could indeed work.
This seems to work much better on Windows for some reason, at least on Qt 5.15.2.
This seems to be somewhat fixed in 4.1.0 when the shadow effect optimization is enabled.
Actually, zooming can still be improved so I'll leave this open.