LWJGL/lwjgl3

[MacOS] does not render while resizing

mirraj2 opened this issue · 5 comments

Version

3.3.3

Platform

macOS arm64

JDK

JDK 11

Module

GLFW

Bug description

On MacOS, I am dragging the window and it does not render at all until I release the mouse button on the drag. I would like it to keep rendering during the drag operation.

Stacktrace or crash log output

No response

This looks like the same issue as glfw/glfw#408 -- is that correct?

that does look similar but not quite the same. In that issue's screenshot I see artifacts during the drag operation but on my computer I see no artifacts.

Also that issue seems to be closed without any kind of fix or solution

Spasi commented

Hey @mirraj2, this can be fixed by decoupling event handling and rendering. Event handling is done on the main thread, with blocking glfwWaitEvents, while rendering is done continuously on a secondary thread.

See the Vorbis sample for example code. It works nicely on Windows too.

thank you both!