[PyOpenGL-Users] Anyone have a working script using PyOpenGL with threads?
Brought to you by:
mcfletch
From: Mike C. F. <mcf...@ro...> - 2002-07-24 07:59:59
|
I've been trying to make OpenGLContext use a model where a background server thread does the rendering to allow foreground threads to be application-specific & largely unconcerned with the rendering operations. However, whenever I try to put the rendering thread in the background, the entire works gets gummed up, with the symptoms looking like the OpenGL calls just aren't writing to the buffers at all (the results from previous runs are present, along with random data, etceteras), though the swap-buffers methods seem to be working for both GLUT and wx. I'm using the context.setCurrent equivalents for the various contexts, BTW. I'd love to see a script using threads + OpenGL so I can figure out what I'm doing wrong here. I assume it's something dumb, but I can't figure out what. Any help appreciated, Mike _______________________________________ Mike C. Fletcher Why, yes, I am looking for a job... http://members.rogers.com/mcfletch/ |