This simple piece of code will work (the window does not respond) after a few seconds (about 5).
import pygame
from pygame.locals import *
pygame.init()
screen = pygame.display.set_mode((640, 480), 0, 24)
cycles = 0
while True:
screen.fill(0)
cycles += 1
pygame.display.update()
If I uncomment the commented lines, I can clearly see that the program gets out of control when displaying values between 47 and 50.
I am using python 2.7 and pygame 1.9.2, Windows 8 (64 bit) and Eclipse + PyDev.
source
share