Login  Register

Re: NEWT blinking on macOS when resizing

Posted by Sven Gothel on Jan 01, 2020; 3:02pm
URL: https://forum.jogamp.org/NEWT-blinking-on-macOS-when-resizing-tp4040200p4040218.html

On 1/1/20 7:46 AM, xor [via jogamp] wrote:
> I found a way to prevent that blink.
>
> When resizing window, pause the Animator. However there isn't an event called
> windowResizeFinished, so there isn't a good time to restore that.
That is a problem.

One potential solution for some OS (MacOS AFAIK)
is not to do a live-resize: Pause animation and all display calls,
while using a background image during resize.
Here they usually use a time to define 'end of resize',
after pointer release.

>
> So this bug is related to the implementation of Animator which gets higher
> priority than resize so the window isn't able to respond in time.
Resize flickering is not really a bug, but nice to have not :)
Interesting description of the potential culprit from you here.

You mean the resize's 'display' fights animator's 'display' call?

Doesn't flickering usually happen w/ broken vsync, regardless who renders?
Note that our display calls are thread safe, i.e. blocking each other.

If you really like to resolve this issue (see above re non live-resize),
I give you a bugzilla account and please also consider X11 besides MacOS.

~Sven