Sign in to follow this  
JPulham

GLX render thread initialization

Recommended Posts

From reading around I have figured out that to do rendering in a separate thread to game logic you create a window and then in the render thread create the context, at least thats how it works with wgl. Is it the same with glx? Do I pass the display, visual and window to the render thread from the window creation and call glXCreateContext/glXMakeCurrent from the render thread? cheers.

Share this post


Link to post
Share on other sites
Thanks for the reply, but I understood that the keyboard & mouse would be handled in the game logic thread, therefore requiring a window and thus a display connection, while OpenGL render calls were made from a separate thread?
Have I missed the point here? Maybe I wasn't clear enough...

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this