From d2327bd06f40887985fee14d192198efe1e1c472 Mon Sep 17 00:00:00 2001 From: Kyle Spier-Swenson Date: Mon, 12 Oct 2015 19:29:29 -0700 Subject: [PATCH] Fixes automatic map change causing lag It would lock up the MC for 30 seconds while it was compiling, meanwhile ticks are queuing. After the map was compiled, there would be 15 mob ticks, 15 object subsystem ticks, 15 mechinery ticks, 60 atmo ticks, etc all queued up and would attempt to fire all at once. --- code/controllers/subsystem/ticker.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/controllers/subsystem/ticker.dm b/code/controllers/subsystem/ticker.dm index 1aea2fed5c6..451582bcf47 100644 --- a/code/controllers/subsystem/ticker.dm +++ b/code/controllers/subsystem/ticker.dm @@ -488,4 +488,5 @@ var/datum/subsystem/ticker/ticker //map rotate chance defaults to 75% of the length of the round (in minutes) if (!prob((world.time/600)*config.maprotatechancedelta)) return - maprotate() \ No newline at end of file + spawn(-1) //compiling a map can lock up the mc for 30 to 60 seconds if we don't spawn + maprotate()