Re: Using PyOpenGL in threaded programs
Ian Mallett <[email protected]> Mon, 12 Mar 2012 11:50:19 -0600
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <CAG4NV=u-jnWZ5mX9YGtQYTatrioM6XmuHwadvs9YFFMr7YXk3w@mail.gmail.com> |
2012/3/12 Miguel Pérez <[email protected]> > Any news on bug 2965754? ( > http://sourceforge.net/tracker/?func=detail&aid=2965754&group_id=5988&atid=105988) > > I'm writing an image viewer that was supposed to preload images in the > background. However, it'll crash if I attempt to load images in one thread > and show them in another thread once it has been successfully loaded. I > verified I can use any number of threads, and PyOpenGL can be used from any > thread, but it doesn't seem to be able to be called from different threads. > In other words, the thread that loads textures must be the thread that uses > them, and the thread that unloads them. There's an example of what I'm > saying attached to said bug. Am I doing something wrong? > > Thanks > FYI, multithreading probably won't improve performance in Python due to the GIL . . . ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ PyOpenGL Homepage http://pyopengl.sourceforge.net _______________________________________________ PyOpenGL-Devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/pyopengl-devel