Re: Possible to have GLCanvas's display() called *after* all other Swing events?
Posted by
farrellf on
Nov 10, 2017; 9:18pm
URL: https://forum.jogamp.org/Possible-to-have-GLCanvas-s-display-called-after-all-other-Swing-events-tp4038306p4038315.html
While writing a minimalist demo to show the problem, I realized this even occurs if the GLCanvas is the only thing being drawn. Here's a short video clip showing the problem:
http://www.farrellf.com/temp/jogl_not_redrawing_in_sync_with_jframe_size.mp4Notice how resizing the JFrame causes black bars to appear in the "new" space until the next frame when the GLCanvas is drawn at the correct size. The demo is literally just drawing one triangle, so I don't think this is related to the GPU being unable to keep up.
Any ideas?
Thanks,
-Farrell