custom_sprite_work 
Vars | |
| overrun_budget | How many ms costly work may still run past the ends of ticks now. Below zero, it went over, and that is paid back first. |
|---|---|
| overrun_budget_at | When overrun_budget was last topped up. |
| queue | Editors and other /datum/custom_sprite_work_owner with deferred work, in the order they asked. |
Procs | |
| fire | Runs queued editors' work in order until the tick runs short. Costly work can't be split: what it runs past its tick's limit comes out of the overrun budget, and while that is spent, costly work waits for it to refill. A rebuild's drawing never waits once its body is built, but what it runs over comes out of the budget too. Work that has to wait goes back in the queue. |
| stat_entry | Shows how many editors are waiting, and what is left of the overrun budget. |
Var Details
overrun_budget 
How many ms costly work may still run past the ends of ticks now. Below zero, it went over, and that is paid back first.
overrun_budget_at 
When overrun_budget was last topped up.
queue 
Editors and other /datum/custom_sprite_work_owner with deferred work, in the order they asked.
Proc Details
fire
Runs queued editors' work in order until the tick runs short. Costly work can't be split: what it runs past its tick's limit comes out of the overrun budget, and while that is spent, costly work waits for it to refill. A rebuild's drawing never waits once its body is built, but what it runs over comes out of the budget too. Work that has to wait goes back in the queue.
stat_entry
Shows how many editors are waiting, and what is left of the overrun budget.