pygame clock.tick() vs framerate in game main loop
FPS, Frames 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.
I set up high fps - clock.tick(30) or 60, and game runs fast, and get_ticks() prints out elapsed time very fast however actual runtime from pygame.init() did not change!
I thought time runs faster because of high FPS! It does not, I tried clock.tick(0.1) - aka 1 frame per 10 seconds, and get_ticks() printed out its elapsed time only ONCE PER 10 seconds! Because the while loop was running through itself at fps = 0.1.
But if fps was higher, the update rate would be higher -not the total elapsed time
Now I figured it out.