code/__defines/_tick.dm 
| TICK_BYOND_RESERVE | Tick limit while running normally |
|---|---|
| TICK_LIMIT_TO_RUN | Tick limit used to resume things in stoplag |
| TICK_LIMIT_MC | Tick limit for MC while running |
| TICK_LIMIT_MC_INIT_DEFAULT | Tick limit while initializing |
| TICK_USAGE | for general usage of tick_usage |
| TICK_USAGE_REAL | to be used where the result isn't checked |
| TICK_CHECK | Sleeps via stoplag() when tick_usage is above the limit and returns TRUE if it slept. Unlike /tg/ and CM, callers here rely on this sleeping, so it is not a pure check. |
| CHECK_TICK | Runs stoplag once if tick_usage is above the limit. (Wrapping TICK_CHECK here used to sleep twice per yield, because TICK_CHECK already sleeps.) |
| TICK_CHECK_HIGH_PRIORITY | Returns true if tick usage is above 95, for high priority usage |
| CHECK_TICK_HIGH_PRIORITY | runs stoplag if tick_usage is above 95, for high priority usage |
Define Details
CHECK_TICK 
Runs stoplag once if tick_usage is above the limit. (Wrapping TICK_CHECK here used to sleep twice per yield, because TICK_CHECK already sleeps.)
CHECK_TICK_HIGH_PRIORITY 
runs stoplag if tick_usage is above 95, for high priority usage
TICK_BYOND_RESERVE 
Tick limit while running normally
TICK_CHECK 
Sleeps via stoplag() when tick_usage is above the limit and returns TRUE if it slept. Unlike /tg/ and CM, callers here rely on this sleeping, so it is not a pure check.
TICK_CHECK_HIGH_PRIORITY 
Returns true if tick usage is above 95, for high priority usage
TICK_LIMIT_MC 
Tick limit for MC while running
TICK_LIMIT_MC_INIT_DEFAULT 
Tick limit while initializing
TICK_LIMIT_TO_RUN 
Tick limit used to resume things in stoplag
TICK_USAGE 
for general usage of tick_usage
TICK_USAGE_REAL 
to be used where the result isn't checked