修改主循环帧率控制代码,尝试修复love的wait(0)导致部分设备的巨大误差
This commit is contained in:
@@ -733,6 +733,6 @@ function love.run()
|
|||||||
--Keep 60fps
|
--Keep 60fps
|
||||||
_=TIME()-lastFrame
|
_=TIME()-lastFrame
|
||||||
if _<.016 then WAIT(.016-_)end
|
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
|
||||||
end
|
end
|
||||||
Reference in New Issue
Block a user