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