Re: pyopengl threading
David Honour <[email protected]> Mon, 20 Oct 2008 20:03:08 +0100
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <20081020200308.526c86ea@gen2box> |
I'm so sorry, i now realise i posted this to the wrong list, but, i solved it anyway, turns out you have to set glutIdleFunc. I apologise for taking your time. On Sun, 12 Oct 2008 09:03:58 +0100 David Honour <[email protected]> wrote: > 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 > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK > & win great prizes Grand prize is a trip for two to an Open Source > event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ PyOpenGL Homepage > http://pyopengl.sourceforge.net > _______________________________________________ > PyOpenGL-Devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/pyopengl-devel ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net