Setting a fixed frame rate in Pygame, Python 3 (stackoverflow.com)stack
8 points by Vladimir Shevyakov in stackoverflow.com · 10y ago · stack
I'm currently making a game using Pygame (Python 3), and I'm looking for a way to make the game run at a fixed frame rate (unit FPS). Most of the game is located inside a giant while loop, where the user input is taken, sprites are rendered, etc. every tick. My goal is to be abl…