Easiest way would be to override the default behaviour of EventLoop.idle to not draw to the available windows, only dispatch events. That should allow you to control when your windows are redrawn precisely.
On 26 Apr 2009, at 18:54, Tristam MacDonald 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/ > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
