修正框架主循环刷新率控制

This commit is contained in:
MrZ626
2021-12-21 23:35:32 +08:00
parent b887a1f096
commit 20a1d2bcc1

View File

@@ -823,7 +823,7 @@ function love.run()
end
_=timer()-lastFrame
if _<sleepInterval*.9626 then WAIT(.0162-sleepInterval*.9626)end
if _<sleepInterval*.9626 then WAIT(sleepInterval*.9626-_)end
while timer()-lastFrame<sleepInterval do end
end
end