Files
2025-02-05 06:19:18 +00:00

3 lines
9.6 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><base href="../../"><link rel="stylesheet" href="dmdoc.css"><title>/datum/controller/master - /tg/ Station 13</title></head><body><header><a href="index.html">/tg/ Station 13</a> - <a href="index.html#modules">Modules</a> - <a href="index.html#types">Types</a><a href="datum/controller/master.html#var">Var Details</a> - <a href="datum/controller/master.html#proc">Proc Details</a></header><main><h1>master <aside>/<a href="datum.html">datum</a>/<a href="datum/controller/master.html">controller/master</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L18"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 18"></a></h1><table class="summary" cellspacing="0"><tr><td colspan="2"><h2>Vars</h2></td></tr><tr><th><a href="datum/controller/master.html#var/current_runlevel">current_runlevel</a></th><td>for scheduling different subsystems for different stages of the round</td></tr><tr><th><a href="datum/controller/master.html#var/current_ticklimit">current_ticklimit</a></th><td>current tick limit, assigned before running a subsystem.
used by CHECK_TICK as well so that the procs subsystems call can obey that SS's tick limits</td></tr><tr><th><a href="datum/controller/master.html#var/iteration">iteration</a></th><td>How many times have we ran</td></tr><tr><th><a href="datum/controller/master.html#var/last_run">last_run</a></th><td>world.time of last fire, for tracking lag outside of the mc</td></tr><tr><th><a href="datum/controller/master.html#var/last_type_processed">last_type_processed</a></th><td>The type of the last subsystem to be fire()'d.</td></tr><tr><th><a href="datum/controller/master.html#var/make_runtime">make_runtime</a></th><td>makes the mc main loop runtime</td></tr><tr><th><a href="datum/controller/master.html#var/map_loading">map_loading</a></th><td>Are we loading in a new map?</td></tr><tr><th><a href="datum/controller/master.html#var/processing">processing</a></th><td>Are we processing (higher values increase the processing delay by n ticks)</td></tr><tr><th><a href="datum/controller/master.html#var/queue_head">queue_head</a></th><td>Start of queue linked list</td></tr><tr><th><a href="datum/controller/master.html#var/queue_tail">queue_tail</a></th><td>End of queue linked list (used for appending to the list)</td></tr><tr><th><a href="datum/controller/master.html#var/skip_ticks">skip_ticks</a></th><td>Only run ticker subsystems for the next n ticks.</td></tr><tr><th><a href="datum/controller/master.html#var/sleep_delta">sleep_delta</a></th><td>How long is the MC sleeping between runs, read only (set by Loop() based off of anti-tick-contention heuristics)</td></tr><tr><th><a href="datum/controller/master.html#var/stack_end_detector">stack_end_detector</a></th><td>Stack end detector to detect stack overflows that kill the mc's main loop</td></tr><tr><th><a href="datum/controller/master.html#var/subsystems">subsystems</a></th><td>List of subsystems to process().</td></tr><tr><td colspan="2"><h2>Procs</h2></td></tr><tr><th><a href="datum/controller/master.html#proc/laggy_byond_map_update_incoming">laggy_byond_map_update_incoming</a></th><td>Warns us that the end of tick byond map_update will be laggier then normal, so that we can just skip running subsystems this tick.</td></tr></table><h2 id="var">Var Details</h2><h3 id="var/current_runlevel"><aside class="declaration">var </aside>current_runlevel <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L59"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 59"></a></h3><p>for scheduling different subsystems for different stages of the round</p><h3 id="var/current_ticklimit"><aside class="declaration">var </aside>current_ticklimit <aside> /static</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L70"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 70"></a></h3><p>current tick limit, assigned before running a subsystem.
used by CHECK_TICK as well so that the procs subsystems call can obey that SS's tick limits</p><h3 id="var/iteration"><aside class="declaration">var </aside>iteration <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L24"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 24"></a></h3><p>How many times have we ran</p><h3 id="var/last_run"><aside class="declaration">var </aside>last_run <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L29"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 29"></a></h3><p>world.time of last fire, for tracking lag outside of the mc</p><h3 id="var/last_type_processed"><aside class="declaration">var </aside>last_type_processed <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L51"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 51"></a></h3><p>The type of the last subsystem to be fire()'d.</p><h3 id="var/make_runtime"><aside class="declaration">var </aside>make_runtime <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L46"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 46"></a></h3><p>makes the mc main loop runtime</p><h3 id="var/map_loading"><aside class="declaration">var </aside>map_loading <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L57"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 57"></a></h3><p>Are we loading in a new map?</p><h3 id="var/processing"><aside class="declaration">var </aside>processing <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L22"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 22"></a></h3><p>Are we processing (higher values increase the processing delay by n ticks)</p><h3 id="var/queue_head"><aside class="declaration">var </aside>queue_head <aside> /<a href="datum.html">datum</a>/<a href="datum/controller/subsystem.html">controller/subsystem</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L53"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 53"></a></h3><p>Start of queue linked list</p><h3 id="var/queue_tail"><aside class="declaration">var </aside>queue_tail <aside> /<a href="datum.html">datum</a>/<a href="datum/controller/subsystem.html">controller/subsystem</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L54"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 54"></a></h3><p>End of queue linked list (used for appending to the list)</p><h3 id="var/skip_ticks"><aside class="declaration">var </aside>skip_ticks <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L43"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 43"></a></h3><p>Only run ticker subsystems for the next n ticks.</p><h3 id="var/sleep_delta"><aside class="declaration">var </aside>sleep_delta <aside> </aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L40"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 40"></a></h3><p>How long is the MC sleeping between runs, read only (set by Loop() based off of anti-tick-contention heuristics)</p><h3 id="var/stack_end_detector"><aside class="declaration">var </aside>stack_end_detector <aside> /<a href="datum.html">datum</a>/<a href="datum/stack_end_detector.html">stack_end_detector</a></aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L26"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 26"></a></h3><p>Stack end detector to detect stack overflows that kill the mc's main loop</p><h3 id="var/subsystems"><aside class="declaration">var </aside>subsystems <aside> /list</aside> <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L32"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 32"></a></h3><p>List of subsystems to process().</p><h2 id="proc">Proc Details</h2><h3 id="proc/laggy_byond_map_update_incoming"><aside class="declaration">proc </aside>laggy_byond_map_update_incoming<aside>() <a href="https://github.com/evilew/GS13-Citadel/blob/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e/code/controllers/master.dm#L608"><img src="git.png" width="16" height="16" title="code/controllers/master.dm 608"></a></aside></h3><p>Warns us that the end of tick byond map_update will be laggier then normal, so that we can just skip running subsystems this tick.</p></main><footer>tgstation.dme <a href="https://github.com/evilew/GS13-Citadel/tree/e8e0068531dd988f9e65b33ae7866d4fbf1fdd9e">e8e0068</a> (master) — <a href="https://github.com/SpaceManiac/SpacemanDMM/blob/master/crates/dmdoc/README.md">dmdoc 1.9.0</a></footer></body></html>