I posted this on the pygame mailing list but maybe someone here will have an answer. I can't be sure whether it's a pygame problem or an SDL problem, really.
Essentially, I have some code that uses PyOpenGL and pygame to render rudimentary animations. It works fine under Linux but for some reason, the pygame windows on my Mac don't refresh unless I click outside the window to "unfocus", at which point they refresh once.
To install SDL and pygame I followed the instructions here. I should note that
pygame.examples.aliens
work fine, while 3D ones such as pygame.examples.glcube
exhibit the same problem as my own code.I also see this printed to the console:
2010-11-12 00:31:51.328 python[75402:903] *** __NSAutoreleaseNoPool():
Object 0x101da6570 of class NSCFData autoreleased with no pool in
place - just leaking
Anyone know what that means?
It turns out some sort of OS X driver glitch causes this when I Ctrl+C a pygame-based application, and the only fix is to reboot.