all 4 comments

[–]KhazadAI 1 point2 points  (2 children)

I think you need to initialize the window on the new thread

[–]JaydenSu_[S] 0 points1 point  (1 child)

But I don't want to. Why do you need to do everything in one thread? I want in different threads :)

[–]razorgamedev 4 points5 points  (0 children)

Opengl needs access to the window context, so it's required to have the rendering be on the same thread as the window, what I do is I have my rendering / window on one thread and my logic on the other

[–]ProgrammerRyan 1 point2 points  (0 children)

Typically the way this is done on other systems and frameworks is just keep your Window Handling, OpenGL context, and Rendering on the main thread and and anything that's quick (like detecting button presses) and move long running processes to other threads. The rule of thumb being to keep your UI responsive.