On Sun, Apr 26, 2009 at 10:54 AM, Tristam MacDonald
<[email protected]> wrote:
> I am trying to render at a (relatively) fixed frame-rate, using the standard
> app-loop and a scheduled update function ever 1/30.0 seconds.
> However, I am also tracking mouse motion for the user interaction, and it
> seems that every time a mouse event occurs, pyglet attempts to redraw the
> screen. Is there any way to disable this behaviour? It ends up pushing my
> frame rate too high, which results in a very choppy experience.
>
> --
> Tristam MacDonald
> http://swiftcoder.wordpress.com/
>
> >
>

Also, if you're using 1.1 beta 2 or above, you can use the window's
'invalid' attribute.  Setting it to False in your mouse event and then
to True in your update function will do what you want, I think (but I
haven't tested this, YMMV).

Colin

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