Oh, for what it's worth, the fps change I'm talking about is as
reported by clockDisplay. I believe it's real, since I can see my in-
game object move faster when the fps goes up.


On Sep 11, 8:34 pm, Tartley <[EMAIL PROTECTED]> wrote:
> Hey people,
>
> If my application is slow enough to reduce the framerate to about
> 30fps, then furiously moving the mouse boosts it up to 60fps again. I
> can't explain why. I don't have any mouse handler.
>
> I've found similar thoughts mixed in to other posts and in followup
> comments, but not found any explanation.
>
> Anyone got any ideas why this seems to happen?
>
> I'm on pyglet 1.1.1. I see this on all of:
>   - thinkpad lappy running Ubuntu
>   - same lappy running WinXP
>   - desktop something or other running WinXP
>
> Source that demonstrates it for me is below.
>
> ---
>
> from pyglet import app, clock, window
> from pyglet.gl import *
> from time import sleep
>
> win = window.Window(fullscreen=True, vsync=True)
> clockDisplay = clock.ClockDisplay()
>
> @win.event
> def on_draw():
>     glClear(GL_COLOR_BUFFER_BIT)
>     glBegin(GL_TRIANGLES)
>     glVertex2f(0, 0)
>     glVertex2f(500, 1000)
>     glVertex2f(1000, 0)
>     glEnd()
>
>     clockDisplay.draw()
>
> def update(dt):
>     sleep(0.01)
>
> clock.schedule(update)
>
> app.run()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to