Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

OpenGL + Multithreading = ?

Name: Apprentice 2011-12-08 11:29

Is there any way to draw Geometry in OpenGL to a single window simultaneously via multiple threads?
(Using Untermensch GLUT)

I seem to have managed a ghetto solution: The main display function in the 1st Thread clears the buffers and draws it's geometry, meanwhile the second Thread calls a glClear(NULL) (Doesn't work without it, no idea why), draws it's part of the geometry and calls a glFlush() and just keeps looping for eternity.
This solution sucks balls for several obvious reasons not worth discussing. I tried adding a global boolean state that would manage when the second thread is allowed to draw, though adding it made the thread draw nothing at all.

I'd like to know how you've managed MT in OpenGL, and if there isn't a possibility like that at all I'd like to know some clever techniques to make OpenGL apps run faster.
Thank You.

Name: Apprentice 2011-12-08 14:17

>>9
My attempt at sculpting software, I'm very unsatisfied with the current speed and I'd like to know if there's perhaps a trick to loop through a high count of vertices faster.
Even performing the calculations on a separate thread isn't quite giving me the results I'm looking for.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List