Profiling PyOpenGL

Kerim Borchaev ( WarKiD ) warkid at storm.ru
Thu Oct 11 04:03:27 EDT 2001


Hello python-list,

why can't I profile PyOpenGL application using profile module?

#prof.py#####################################
from OpenGL.GL import *
from OpenGL.GLUT import *

def display(*args):pass

import sys
glutInit(sys.argv)
glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGB)
glutInitWindowSize(200, 200)
glutCreateWindow('Test')
glutDisplayFunc(display)
glutMainLoop()
#############################################

I run it from command line like this :

 python C:\Python21\Lib\profile.py prof.py

but it prints nothing unless I remove glutMainLoop call.

Best regards,
 Kerim                          mailto:warkid at storm.ru






More information about the Python-list mailing list