Skip to content

Commit

Permalink
Removes a lie from client_proc (tgstation#36357)
Browse files Browse the repository at this point in the history
Byond calls Stat() every 8 ticks with or without this code, it was literally doing nothing. This was pointless and none of this code is expensive enough to warrant throttling it anyways.
  • Loading branch information
MrStonedOne authored and duncathan committed Mar 13, 2018
1 parent ab129a3 commit 6febacc
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions code/modules/client/client_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -656,17 +656,6 @@ GLOBAL_LIST_EMPTY(external_rsc_urls)
return inactivity
return FALSE

// Byond seemingly calls stat, each tick.
// Calling things each tick can get expensive real quick.
// So we slow this down a little.
// See: http://www.byond.com/docs/ref/info.html#/client/proc/Stat
/client/Stat()
. = ..()
if (holder)
stoplag(1)
else
stoplag(5)

//send resources to the client. It's here in its own proc so we can move it around easiliy if need be
/client/proc/send_resources()
#if (PRELOAD_RSC == 0)
Expand Down

0 comments on commit 6febacc

Please sign in to comment.