pygame clock.tick() vs framerate in game main loop

FPSFrames Per Second, is the number of frames shown per unit of time.
1 / FPS is the amount of time should pass between each frame.
Tick is just a measure of time in PyGame.

clock.tick(40) means that for every second at most 40 frames should pass.

Leave a Comment