Any way to speed up Python and Pygame?

Use Psyco, for python2: import psyco psyco.full() Also, enable doublebuffering. For example: from pygame.locals import * flags = FULLSCREEN | DOUBLEBUF screen = pygame.display.set_mode(resolution, flags, bpp) You could also turn off alpha if you don’t need it: screen.set_alpha(None) Instead of flipping the entire screen every time, keep track of the changed areas and only update … Read more