Re: GLCanvas in awt scrollpane drawing problems
Posted by
gouessej on
Jun 08, 2018; 2:30pm
URL: https://forum.jogamp.org/GLCanvas-in-awt-scrollpane-drawing-problems-tp4038912p4038922.html
You're right, the drawing inside the viewport should be correct.
I'm going to have the same kind of problems as you because I need to do something similar in my first person shooter editor, there is a feature that allows to build 3D maps from possibly huge 2D images.
Yes, Java2D seems to have inconsistent performance across platforms and sometimes your rendering looses the hardware acceleration for an unknown reason :s
Maybe you can create your own fake scroll pane and your own scroll bars so that the result is still user friendly and with a canvas whose size depends on the container but not on the scroll.