pygame restrict frame rate code example Example: pygame how to regulate fps clock = pygame.time.Clock()