On Mar 5, 7:40 pm, "Drew Smathers" <[EMAIL PROTECTED]> wrote:
> Are you setting an FPS limit? Again, some code will help others
> understand your problem.
I believe I'm not. Here is minimal example:
import pyglet
window = pyglet.window.Window(resizable=True, vsync=False)
fps_display = pyglet.clock.ClockDisplay()
def update(dt):
pass
def on_draw():
window.clear()
fps_display.draw()
# 'new' vs 'old' way of game loop
if (1):
window.set_handlers(on_draw)
pyglet.clock.schedule(update)
pyglet.app.run()
else:
while not window.has_exit:
window.dispatch_events()
update(pyglet.clock.tick())
on_draw()
window.flip()
-- serg
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---