mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01: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>
This commit is contained in:
@@ -82,7 +82,7 @@ VERB_MANAGER_SUBSYSTEM_DEF(input)
|
||||
stack_trace("non /datum/callback/verb_callback instance inside SSinput's verb_queue!")
|
||||
continue
|
||||
|
||||
average_click_delay = MC_AVG_FAST_UP_SLOW_DOWN(average_click_delay, (REALTIMEOFDAY - queued_click.creation_time) SECONDS)
|
||||
average_click_delay = MC_AVG_FAST_UP_SLOW_DOWN(average_click_delay, TICKS2DS((DS2TICKS(world.time) - queued_click.creation_time)) SECONDS)
|
||||
queued_click.InvokeAsync()
|
||||
|
||||
current_clicks++
|
||||
|
||||
Reference in New Issue
Block a user