mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-16 12:43:09 +00:00
* fixes _queue_verb() runtiming from /client/Click() thousands of times (#70647) * fixes _queue_verb() runtiming from /client/Click() and adds info * Update code/controllers/subsystem/verb_manager.dm Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com> Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com> * fixes _queue_verb() runtiming from /client/Click() thousands of times Co-authored-by: Kylerace <kylerlumpkin1@gmail.com> Co-authored-by: Mothblocks <35135081+Mothblocks@ users.noreply.github.com>
9 lines
331 B
Plaintext
9 lines
331 B
Plaintext
///like normal callbacks but they also record their creation time for measurement purposes
|
|
/datum/callback/verb_callback
|
|
///the tick this callback datum was created in. used for testing latency
|
|
var/creation_time = 0
|
|
|
|
/datum/callback/verb_callback/New(thingtocall, proctocall, ...)
|
|
creation_time = DS2TICKS(world.time)
|
|
. = ..()
|