Canvas jitter/flicker when resizing with multithreaded render loop

Here’s a video of the case described directly above, where the rendering is happening in a separate thread but the window is set to not be resizable while the framebuffer resize callback is being executed.

Unless anyone has some ideas, this seems like a bug somewhere in GLFW or things it calls into, so I might file an issue on the GLFW repository. I’m hoping there is an easy fix either to what I’m doing or to GLFW. For now, this workaround is workable but is certainly not ideal given that the maximize button now flashes for slow resizes.

Multi-threaded rendering blocking resizes during resize - no jitter