移除三个不必要的collectgarbage
This commit is contained in:
@@ -52,7 +52,6 @@ function SCN.swapUpdate()
|
|||||||
S.time=S.time-1
|
S.time=S.time-1
|
||||||
if S.time==S.changeTime then
|
if S.time==S.changeTime then
|
||||||
SCN.init(S.tar,SCN.cur)
|
SCN.init(S.tar,SCN.cur)
|
||||||
collectgarbage()
|
|
||||||
--Scene swapped this moment
|
--Scene swapped this moment
|
||||||
end
|
end
|
||||||
if S.time==0 then
|
if S.time==0 then
|
||||||
|
|||||||
@@ -83,7 +83,6 @@ if type(_CC)=='table'then
|
|||||||
if id then
|
if id then
|
||||||
CC.addNext(P.AI_bot,id)
|
CC.addNext(P.AI_bot,id)
|
||||||
end
|
end
|
||||||
collectgarbage()
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
-------------------------------------------------9 Stack setup
|
-------------------------------------------------9 Stack setup
|
||||||
|
|||||||
@@ -213,7 +213,6 @@ function destroyPlayers()--Destroy all player objects, restore freerows and free
|
|||||||
PLAYERS[i]=nil
|
PLAYERS[i]=nil
|
||||||
end
|
end
|
||||||
TABLE.cut(PLY_ALIVE)
|
TABLE.cut(PLY_ALIVE)
|
||||||
collectgarbage()
|
|
||||||
end
|
end
|
||||||
function pauseGame()
|
function pauseGame()
|
||||||
if not SCN.swapping then
|
if not SCN.swapping then
|
||||||
|
|||||||
Reference in New Issue
Block a user