修改主循环帧率控制代码,尝试修复love的wait(0)导致部分设备的巨大误差

This commit is contained in:
MrZ626
2021-08-21 21:16:45 +08:00
parent 4157062442
commit 03edb20265

View File

@@ -733,6 +733,6 @@ function love.run()
--Keep 60fps
_=TIME()-lastFrame
if _<.016 then WAIT(.016-_)end
while TIME()-lastFrame<1/60-5e-6 do WAIT(0)end
while TIME()-lastFrame<1/60 do end
end
end