我试图以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
答案 0 :(得分:1)
Resolution of pygame clock = 1 msec
80 fps = 12.5 msec
83 fps = 12 msec
int(12.5) = 12