On 12/08/2012 04:55 PM, GiGurra [via jogamp] wrote:
> I'd like to know if there is a way to disable the jogl EDT thread from doing
> redisplays when the window is resized etc.
> I would like my own animator thread to be the only source for display
> invocatioons. Is this possible?
It is not just possible, but already build-in.
Implement your own GLAnimatorControl
and register it via GLAutoDrawable's setAnimator(..), see API doc.
If in doubt, check the source code.
It is crucial to implement the GLAnimatorControl's isAnimating() etc .. methods.
GLAutoDrawable will skip a display call when issued by the native windowing
system, like at resize, if an animator is attached and animating.
This way we guarantee fluent animation.
~Sven