On Mar 4, 1:56 am, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On Tue, Mar 4, 2008 at 12:46 PM, Snor <[EMAIL PROTECTED]> wrote:
>
> >  I've previously used pyglet and implemented a main loop myself. As I
> >  have been creating games that run at as high a frame-rate as possible,
> >  I was updating the screen every frame using a routine in the main
> >  event loop.
>
> >  I was wondering how exactly I call code to be executed every frame
> >  when using pyglet.app?
>
> pyglet.clock.schedule()
>
> If you want even more control, you can subclass EventLoop and override idle().

Do either of these methods guaranteed to get called as often as they
would if you put them directly into your own game loop?

I'd check the docs myself, but pyglet.org has been unreachable for me
for 2 days now. I'm guessing it's a local problem though since nobody
else has mentioned it.

--
Ben Sizer


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to