调整限60fps代码,让出时间更接近一帧

This commit is contained in:
MrZ626
2021-08-23 04:30:43 +08:00
parent 4e47b0acb7
commit 743f192d85

View File

@@ -732,7 +732,7 @@ function love.run()
--Keep 60fps
_=TIME()-lastFrame
if _<.016 then WAIT(.016-_)end
if _<.0162 then WAIT(.0162-_)end
while TIME()-lastFrame<1/60 do end
end
end