On Wednesday 14 November 2007, Bobby R. Ward wrote:
> I've had pretty good luck with running
> pyglet.media.dispatch_events from a background thread.  When you
> try to use a message loop for this, you'll run into some
> problems, on Windows at least.
>
> When dragging a window, maximizing/minimizing, modal dialogs and
> many other times your message loop doesn't get processed.  Which
> means process_events won't get called causing stutter.  I'm not
> sure if this is wxWidgets or Windows specific.  It's been a long
> time since I've used straight windows api from C++.

This is because wx's event loop stuff is junk. All these type of 
events spawn a new sub-event-loop. While it's running, the main 
event loop doesn't run. You have to run from a separate thread, 
it's the only way. 



-- 
Anthony Baxter     <[EMAIL PROTECTED]>
It's never too late to have a happy childhood.

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