On Sat, Nov 29, 2008 at 8:24 PM, Alex Holkner <[EMAIL PROTECTED]>wrote:
> You just need to schedule your update function on the clock (instead > of in the draw method): > > def update(dt): > ship.update() > > period = 1 / 60.0 # 60 frames per second > pyglet.clock.schedule_interval(update, period) > > Alex. I am curious as to whether this actually guarantees that the window is redrawn once per update. In particular, what happens if multiple intervals are scheduled on the clock? Does the window get redrawn according to the shortest interval, or every time an interval expires? - Tristam --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to pyglet-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---