修正框架主循环刷新率控制
This commit is contained in:
@@ -823,7 +823,7 @@ function love.run()
|
|||||||
end
|
end
|
||||||
|
|
||||||
_=timer()-lastFrame
|
_=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
|
while timer()-lastFrame<sleepInterval do end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user