[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] event queue full



On Mon, 14 Jun 2004, Jack Nutting wrote:
> I have a strange problem where my pygame program becomes unresponsive 
> to keypresses.  I've found a specific set of steps that trigger this 
> consistently (although there may be others):
> 
> 1: run spinvaders 
> (http://www.nuthole.com/compute/programming/spinvaders) on Mac OS X
> 2: start a game, and pause it
> 3: run the Grab screenshot-grabbing application (or switch to it if 
> it's already running)
> 4: switch back to spinvaders, and it's hung!

Do you call pygame.event.pump() in your mainloop while the game is paused? 
Another thing you can test is to filter out all events you are not 
processing in your game by using pygame.event.set_allowed.

--
Sami Hangaslammi