[PyOpenGL-Users] Suspiciously slow script
Brought to you by:
mcfletch
From: Derakon <de...@gm...> - 2010-05-20 04:11:35
|
I'm looking into replacing the SDL-based rendering in my game with OpenGL-based rendering, so I downloaded the NeHe OpenGL port ( http://www.pygame.org/gamelets/games/nehe1-10.zip ) and started tweaking the lessons to suit my own purposes. I modified one script to draw a 20x20 array of textured quads, with the texture just being a 100x100 PNG with alpha. This script, which isn't doing anything special that I can see, is giving me a whopping 15FPS, which seems horribly slow to me. Unfortunately, cProfile isn't telling me anything useful (at least as far as I can tell). I don't suppose anyone here could take a look at the script and tell me if I've being boneheaded somehow? I've put it online here: http://derakon.dyndns.org/~chriswei/temp/gltest.py and the textures I'm using are here: http://derakon.dyndns.org/~chriswei/temp/allway Any suggestions would be appreciated. I'm a relative newbie when it comes to OpenGL. -Chris |