Don't forget that Pyglet creates an 'on_draw' event every time the event queue is emptied. http://pyglet.org/doc/api/pyglet.window.Window-class.html#on_draw
I monkey patch the idle loop in my framework to avoid this. Be aware that with my changes, you will need to trigger on_draw yourself. https://github.com/adamlwgriffiths/PyGLy/blob/master/pygly/monkey_patch.py Cheers, Adam On Tuesday, April 10, 2012 4:38:12 AM UTC+10, Rob McMullen wrote: > > Using linux and the xlib event loop, I'm seeing 100% cpu load when I > have any events scheduled. Once there are no more events scheduled, > the load drops down to zero. Sample program attached. > > I can't get pyglet to work in VirtualBox on WinXP so I'm not sure if > this is a platform-specific issue or not. Any ideas? > > Thanks, > > Rob > > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To view this discussion on the web visit https://groups.google.com/d/msg/pyglet-users/-/F5TdKtFDfl8J. 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.
