set max fps to monitor cap pygame code example Example: pygame how to regulate fps clock = pygame.time.Clock()