Created attachment 800 [details]
Reproducer for the flickering
When resizing, the whole rendering flickers at each resize (verified on Linux (GTX1070) and Windows (AMD WX7100) ).
Attached is a simple reproducer.
Your reproducer is wrong, please look at my example:
You shouldn't create the animator inside the GLEventListener and you don't even start your animator, it can't work.
Created attachment 801 [details]
Reproducer with correct Animator
Sorry, I commented it out to check the difference, and forgot to re-enable it before submitting, my bad.
I uploaded a new reproducer that creates the Animator in the main, and the problem is still reproduced.
is the reproducer up to snuff now ?
Can I do anything else to help you reproduce this issue ?
The reproducer seems to be correct now.
I've not investigated yet but maybe it can't be fixed within JOGL, especially if the root cause comes from AWT.
I assume that the problem doesn't occur when using a pure NEWT GLWindow without AWT.
This resize flickering is also visible (more or less) with
Animator doesn't make a difference, nor v-sync.
Looks like our delayed off-thread resize operation creates this visual artifact
while in process, i.e. the blanking (clear buffer) is dominant.
Not sure whether I should spend time on this cosmetic..
Moving product to Newt, component core.
AWT (parent window) detail is unrelated here.
Removing flickering is now a feature.
We have to see whether this can be done at all,
considering our current delayed resize implementation
and for which version.
Putting this on 2.5.0 for now.