[PyOpenGL-Users] RE: Profiling PyOpenGL
Brought to you by:
mcfletch
|
From: Mike F. <mcf...@ho...> - 2001-10-12 01:21:01
|
Profiling the GLUT mainloop is rather difficult, as it's a C loop that only returns by executing a sys.exit (as mentioned by Georg). You can, however, profile a PyGame-hosted PyOpenGL project fairly readily (PyGame doesn't have a native-code mainloop and it's Python one(s) can easily return as a normal function would). I tested by forcing a request for a PyGame context in one of the OpenGLContext tests and then using profile.run to call MainLoop. Of course, swapping contexts is sometimes not an option, but if you're early in the project and PyGame is available on your platforms, using it might work for you. HTH, Mike BTW, posting to the SourceForge PyOpenGL list is probably the fastest way to get a response on PyOpenGL-specific questions like this. -----Original Message----- From: pyt...@py... [mailto:pyt...@py...]On Behalf Of Kerim Borchaev ( WarKiD ) Sent: October 11, 2001 04:03 To: pyt...@py... Subject: Profiling PyOpenGL Hello python-list, why can't I profile PyOpenGL application using profile module? ... but it prints nothing unless I remove glutMainLoop call. Best regards, Kerim mailto:wa...@st... -- http://mail.python.org/mailman/listinfo/python-list |