Makes stat panels a browser (removes lag I guess) (#8407)

* Makes stat panels a browser

* oops

* heck

* oops
This commit is contained in:
Maxim Nikitin
2020-05-06 05:12:14 -04:00
committed by GitHub
parent 62a5f06e7c
commit 02ce376d69
59 changed files with 575 additions and 261 deletions

View File

@@ -166,16 +166,11 @@
return time
//hook for printing stats to the "MC" statuspanel for admins to see performance and related stats etc.
/datum/controller/subsystem/stat_entry(msg)
/datum/controller/subsystem/proc/stat_entry_legacy()
if(!statclick)
statclick = new/obj/effect/statclick/debug(null, "Initializing...", src)
if(can_fire && !(SS_NO_FIRE & flags))
msg = "[round(cost,1)]ms|[round(tick_usage,1)]%([round(tick_overrun,1)]%)|[round(ticks,0.1)]\t[msg]"
else
msg = "OFFLINE\t[msg]"
var/msg = stat_entry()
var/title = name
if (can_fire)
@@ -183,6 +178,13 @@
stat(title, statclick.update(msg))
/datum/controller/subsystem/stat_entry(msg)
if(can_fire && !(SS_NO_FIRE & flags))
msg = "[round(cost,1)]ms|[round(tick_usage,1)]%([round(tick_overrun,1)]%)|[round(ticks,0.1)]\t[msg]"
else
msg = "OFFLINE\t[msg]"
return msg
/datum/controller/subsystem/proc/state_letter()
switch (state)
if (SS_RUNNING)