mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-20 06:32:56 +00:00
* Quickie runechat op (#69137) reintroduces the intermittent queuing behavior found in #65791 since i can actually recover that part. now after MeasureText() puts us in the player input portion of the tick it will queue a callback for the next tick to resume chat message creation generate_image() is a highly overtiming proc, now its less so * Quickie runechat op Co-authored-by: Kylerace <kylerlumpkin1@gmail.com>
15 lines
386 B
Plaintext
15 lines
386 B
Plaintext
TIMER_SUBSYSTEM_DEF(runechat)
|
|
name = "Runechat"
|
|
priority = FIRE_PRIORITY_RUNECHAT
|
|
|
|
var/list/datum/callback/message_queue = list()
|
|
|
|
/datum/controller/subsystem/timer/runechat/fire(resumed)
|
|
. = ..() //poggers
|
|
while(message_queue.len)
|
|
var/datum/callback/queued_message = message_queue[message_queue.len]
|
|
queued_message.Invoke()
|
|
message_queue.len--
|
|
if(MC_TICK_CHECK)
|
|
return
|