Pygame FPS比我想要的更快

时间:2015-05-11 12:14:09

标签: python pygame

我试图以80 fps的速度运行游戏但是我的速度是83 fps?!发生了什么事?

while 1:
  start = time()
  clock.tick_busy_loop(80)
  self.update()
  fps=int(1./(time()-start))
  print fps, 'fps'
>> 83 fps

1 个答案:

答案 0 :(得分:1)

Resolution of pygame clock = 1 msec
80 fps = 12.5 msec
83 fps = 12 msec
int(12.5) = 12