-
-
Notifications
You must be signed in to change notification settings - Fork 542
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Co-authored-by: Mothblocks <[email protected]>
- Loading branch information
1 parent
67eaba0
commit 0481fd4
Showing
4 changed files
with
22 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
///like normal callbacks but they also record their creation time for measurement purposes | ||
/datum/callback/verb_callback | ||
///the REALTIMEOFDAY this callback datum was created in. used for testing latency | ||
///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 = REALTIMEOFDAY | ||
creation_time = DS2TICKS(world.time) | ||
. = ..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters