From 05db439c1e0ff7c9f983c24d779ec9c35845d7fa Mon Sep 17 00:00:00 2001 From: oranges Date: Fri, 15 Dec 2017 18:11:46 +1300 Subject: [PATCH] SSinput tweaks to address server side lag --- code/controllers/subsystem/input.dm | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 code/controllers/subsystem/input.dm diff --git a/code/controllers/subsystem/input.dm b/code/controllers/subsystem/input.dm new file mode 100644 index 0000000000..5dbb642f2e --- /dev/null +++ b/code/controllers/subsystem/input.dm @@ -0,0 +1,12 @@ +SUBSYSTEM_DEF(input) + name = "Input" + wait = 1 //SS_TICKER means this runs every tick + flags = SS_TICKER | SS_NO_INIT + priority = 1000 + runlevels = RUNLEVELS_DEFAULT | RUNLEVEL_LOBBY + +/datum/controller/subsystem/input/fire() + var/list/clients = GLOB.clients // Let's sing the list cache song + for(var/i in 1 to clients.len) + var/client/C = clients[i] + C.keyLoop()