Could non-rendering functions be made thread-safe?

As you state glfwPollEvents needs to be called from the main thread. See this post on Multithreading GLFW for why.

However you can put the rendering on another thread (make sure to make the context current on that thread).

1 Like