Stream setup for GLFW

I started working with the new Lwjgl 3, which uses GLFW to handle Display / mouse / keyboard, and I really like it! However, today I hit a brick. I had a simple rendering animation, but when I dragged the screen, it stopped rendering until I let go.


According to: http://www.glfw.org/faq.html
The problem is due to windows.

3.5 - Why does my application freeze when I move or resize the window?

The Windows event loop is blocked by certain actions, such as dragging or resizing a window or opening a window menu. This is part of the Windows design and cannot be modified by GLFW. If you want to keep rendering during such actions, you have to do from a secondary stream.


http://www.glfw.org/faq.html p>


Ive been doing multithreaded stuff before in Java. But I'm not sure what is going on in his own theme for this case. Should I have opengl code and GLFW code in separate threads? I also have problems thinking about how to express my concerns.
+4
source share
2 answers

, , - , GLFW . OS GLFW glfwPollEvents glfwWaitEvents .

OpenGL . glfwMakeContextCurrent OpenGL , . , , ( ).

LWJGL : [SOLVED] LWJGL3

LWJGL3 ,

0

, GLFW OpenGL . . , . (E.x., .) , .

-1

All Articles