When you zoom out, are a lot more nodes and links visible?
Does the performance become very good again when you zoom back in?
If so, then it’s just because it has to do so much drawing when dragging or scrolling. Are you drawing any gradients? Is text antialiased? Is line drawing antialiased? You can override JGoView.applyRenderingHints.
Yes there are more nodes and links visible, but no when you zoom back in the performance is still poor. I also get this behavior when you zoom in. So I don’t think it’s got anything to do with the amount of nodes.
There are no gradients, the text is not aliased, the line drawing is anti-aliased however turning it to not-aliased results in the same behavior.
Funnily enough I’ve just switched from
KEY_INTERPOLATION = VALUE_INTERPOLATION_BICUBIC
to
KEY_INTERPOLATION = VALUE_INTERPOLATION_BILINEAR
and my rendering seems to have sped up vastly.
Odd, anyways thanks for the pointer, Hopefully this can help others…