i have a very large nodetree here (i know that I’m kinda pushing the limit, but I’m stuck on dividing this in nodegroups because there’s no proper solutions for enum yet )
i had reports that the node is difficult to navigate on laptop
and it seem a bit strange, because only a small minority of the nodetree is shown to users in the 2dviewport. (impossible to see everything even in max zoom out level)
It seems that High zoom or Low zoom didn’t change anything in term of performance,
and this is raising a question:
is it possible that the nodetree drawing code is not clipping elements outside the user view?
I’ve been curious about this before. Just from looking at the code, I’ve noticed that node tree drawing is not very optimized. But I haven’t actually seen performance bottlenecks in practice. Looks like you have!
In general nodes outside of the view often still have to be partially drawn in order to figure out their height, or the direction of node noodles that leave the screen. So the optimization isn’t as trivial as you might think.