I'm writing an application in Pyglet that requires multiple windows to be 
updated at high framerate.  Instead of rendering each window at 60 fps, 
though, pyglet is alternating between the windows each time it wants to 
render.  So, two windows render at 30fps, 3 windows at 20fps, etc.  This is 
not a slowdown issue or anything--it happens even when there is nothing to 
render inside the window (see test code below).  

Does anyone have suggestions on how to get back framerate on the windows? 
 I think it has something to do with pyglet's clock or event handler, but I 
haven't found yet how to fix it.  Thank you in advance, and I look forward 
to being a part of the pyglet user community!
__________________________________________

import pyglet

number_of_windows = 5

windows = []
for idx in range(0, number_of_windows):
    #Create a window with multisampling (antialiasing)
    windows.append(pyglet.window.Window(resizable=True, fullscreen=False))


def update(dt):
    pass
pyglet.clock.schedule_interval(update,1./120)


for window in windows:
    @window.event
    def on_draw():
        print(pyglet.clock.get_fps())  #Console outputs framerate.
pyglet.clock.set_fps_limit(0)

pyglet.app.run()

_____________________________________________


-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to