Created
October 31, 2015 11:48
-
-
Save stamaniorec/fc4899628ee34f9bbf93 to your computer and use it in GitHub Desktop.
#pygame cap fps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clock = pygame.time.Clock() | |
| FPS = 60 | |
| ... | |
| while is_running: | |
| for event in pygame.event.get(): | |
| ... | |
| ... | |
| pygame.display.update() | |
| clock.tick(FPS) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment