Login  Register

Re: NEWT blinking on macOS when resizing

Posted by Sven Gothel on Dec 26, 2019; 2:31pm
URL: https://forum.jogamp.org/NEWT-blinking-on-macOS-when-resizing-tp4040200p4040204.html

On 12/26/19 4:32 AM, xor [via jogamp] wrote:
> I'm using macOS Mojave 10.5.2, with jogl 2.3.2.
>
> When resizing the window, it shows blinks with window background color (gray)
> and game graphics.
>
> Not sure whether this is fixed in 2.4.0. Thanks.

Thank you for testing.

Probably not fixed in 2.4.0, but I will check its quality.
Quite a few changes were made in the MacOS code path.

Currently only NEWT has a 'pause animation'
for certain operations when using an AnimatorControl.
But even on X11 NEWT resizing flickers,
as we don't stop rendering in general.

On MacOS using AWT the situation is a little bit more complex,
as OpenJDK uses offscreen compositing in a fancy way,
which does not really allow us to control the FBO.
From memory we even have to issue a compositing animator
to achieve rendering to VSYNC - that explains that issue as well.
Bottom line: On MacOS using AWT is no more onscreen direct rendering.
Only NewtCanvasAWT guarantees direct onscreen rendering for all platforms.

In don't know which TextRenderer you are referring to.

I only support the Graph based text rendering from here on,
others are welcome to refactor the old AWT based text renderer
to make it AWT agnostic.








signature.asc (849 bytes) Download Attachment