comparison pytouhou/ui/gamerunner.py @ 477:e71b1bcf952a

Wait a bit for incoming messages...
author Thibaut Girka <thib@sitedethib.com>
date Wed, 28 Dec 2011 19:07:37 +0100
parents 9d4d52793eca
children
comparison
equal deleted inserted replaced
476:44c5e7d4b615 477:e71b1bcf952a
68 glEnableClientState(GL_COLOR_ARRAY) 68 glEnableClientState(GL_COLOR_ARRAY)
69 glEnableClientState(GL_VERTEX_ARRAY) 69 glEnableClientState(GL_VERTEX_ARRAY)
70 glEnableClientState(GL_TEXTURE_COORD_ARRAY) 70 glEnableClientState(GL_TEXTURE_COORD_ARRAY)
71 71
72 # Use our own loop to ensure 60 (for now, 120) fps 72 # Use our own loop to ensure 60 (for now, 120) fps
73 pyglet.clock.set_fps_limit(120) 73 pyglet.clock.set_fps_limit(60)
74 while not self.has_exit: 74 while not self.has_exit:
75 pyglet.clock.tick() 75 pyglet.clock.tick()
76 self.dispatch_events() 76 self.dispatch_events()
77 self.update() 77 self.update()
78 self.on_draw() 78 self.on_draw()