Limit the pool only to 20 objects.

This commit is contained in:
ESwordTheCat
2014-04-29 13:33:25 -04:00
committed by ZomgPonies
parent ebfcc9be79
commit 012b45ad32
+4
View File
@@ -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