修复一个手滑小问题
This commit is contained in:
@@ -305,7 +305,7 @@ function love.receiveData(id,data)end
|
|||||||
local lastGCtime=0
|
local lastGCtime=0
|
||||||
function love.lowmemory()
|
function love.lowmemory()
|
||||||
if love.timer.getTime()-lastGCtime>2.6 then
|
if love.timer.getTime()-lastGCtime>2.6 then
|
||||||
lastGCtime=love.timer.getTime
|
lastGCtime=TIME()
|
||||||
collectgarbage()
|
collectgarbage()
|
||||||
LOG.print("[Auto GC] Low Memory!","warn")
|
LOG.print("[Auto GC] Low Memory!","warn")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user