调整限60fps代码,让出时间更接近一帧
This commit is contained in:
@@ -732,7 +732,7 @@ function love.run()
|
||||
|
||||
--Keep 60fps
|
||||
_=TIME()-lastFrame
|
||||
if _<.016 then WAIT(.016-_)end
|
||||
if _<.0162 then WAIT(.0162-_)end
|
||||
while TIME()-lastFrame<1/60 do end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user