diff --git a/Zframework/scene.lua b/Zframework/scene.lua index bc8cb4ef..2928e386 100644 --- a/Zframework/scene.lua +++ b/Zframework/scene.lua @@ -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 diff --git a/parts/ai.lua b/parts/ai.lua index 1c1519f5..b4fbcbe9 100644 --- a/parts/ai.lua +++ b/parts/ai.lua @@ -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 diff --git a/parts/gametoolfunc.lua b/parts/gametoolfunc.lua index d6300422..f32179b7 100644 --- a/parts/gametoolfunc.lua +++ b/parts/gametoolfunc.lua @@ -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