调整帧率控制算法
This commit is contained in:
@@ -822,7 +822,9 @@ function love.run()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
WAIT(sleepInterval)
|
_=timer()-lastFrame
|
||||||
|
if _<sleepInterval*.9626 then WAIT(.0162-sleepInterval*.9626)end
|
||||||
|
while timer()-lastFrame<sleepInterval do end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user