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

[pygame] Windows pygame stutters



Hi all,

I'm new to python, pygame, and game programming in general (although I've been a programmer for years and years), and am having great fun learning this stuff! Pygame rocks! For a look at my work-in-progress, see http://www.nuthole.com/spinvaders.zip (the code needs lots of refactoring etc since I'm learning the problem domain from scratch as I go along, but it works pretty well. Tips about any obvious newbie mistakes in this code would be appreciated!)

Now, on to my problem: I'm doing my work on Mac OS X and everything works great. I figured it would be nice to move this to Windows as well, and after a bit of trial and error I got things working a bit, with one catch: My game starts up OK, plays for a few seconds, and then hangs. It seems like my program just stops getting events for a while or something. Eventually it will sometimes unfreeze and run a few frames, only to hang again.

Interestingly, this only occurs if I try to run in fullscreen mode. Running in a window is fine. Any ideas?

//jack