[PyOpenGL-Devel] pyopengl threading
Brought to you by:
mcfletch
|
From: David H. <the...@ti...> - 2008-10-12 08:02:48
|
I used to be able to thread pyopengl by creating a function that did the tasks below and launching it in a new thread: -prepare the gl module #this seems to be fine -run glutMainLoop() #this seems to be causing the probs When i try this now it acts very strangely. print statements and other pure python things seem to go through fine, but, when i put the call in to the socket library it doesn't happen, or at least fails to return from the call. Also, it now doesn't seem to behave differently when split between 2 threads, as in it is no different if i do the preparation and importing in a different thread to the glutMainLoop() call. PyOpenGL version 2.0.0.9-r1 |