Mercurial > touhou
comparison pytouhou/opengl/gamerenderer.py @ 123:d1c82d43bbf3
Various optimizations
author | Thibaut Girka <thib@sitedethib.com> |
---|---|
date | Sat, 10 Sep 2011 11:58:24 +0200 |
parents | 174324a4da51 |
children | 0313ca2c50e9 |
comparison
equal
deleted
inserted
replaced
122:174324a4da51 | 123:d1c82d43bbf3 |
---|---|
53 glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST) | 53 glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST) |
54 glEnableClientState(GL_COLOR_ARRAY) | 54 glEnableClientState(GL_COLOR_ARRAY) |
55 glEnableClientState(GL_VERTEX_ARRAY) | 55 glEnableClientState(GL_VERTEX_ARRAY) |
56 glEnableClientState(GL_TEXTURE_COORD_ARRAY) | 56 glEnableClientState(GL_TEXTURE_COORD_ARRAY) |
57 | 57 |
58 pyglet.clock.schedule_interval(self.update, 1./60) | 58 pyglet.clock.schedule_interval(self.update, 1./120) |
59 pyglet.app.run() | 59 pyglet.app.run() |
60 | 60 |
61 | 61 |
62 def on_resize(self, width, height): | 62 def on_resize(self, width, height): |
63 glViewport(0, 0, width, height) | 63 glViewport(0, 0, width, height) |