From 012b45ad32483812b161a75123408fa376e4cd88 Mon Sep 17 00:00:00 2001 From: ESwordTheCat Date: Tue, 29 Apr 2014 05:42:04 -0800 Subject: [PATCH] Limit the pool only to 20 objects. --- code/controllers/master_controller.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/controllers/master_controller.dm b/code/controllers/master_controller.dm index c1628fcdeaf..95df206bdb3 100644 --- a/code/controllers/master_controller.dm +++ b/code/controllers/master_controller.dm @@ -220,6 +220,10 @@ datum/controller/game_controller/proc/process() ticker.process() ticker_cost = (world.timeofday - timer) / 10 + // Object Pool + if (masterPool.len > 20) + masterPool.len = 20 + // GC timer = world.timeofday last_thing_processed = garbage.type