mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-07 16:12:24 +00:00
This commit ports the StonedMC from /tg/station, intended to replace the Process Scheduler from goon. Currently, they exist simultaneously, as it's very difficult to port our 22 processes to the SMC all at once. Instead, we can make them work together until everything is converted over at a later point, and then take the old PS out back and put a couple of rounds into it's deformed skull. Primary benefits of this new process controller include: Other people that can actually maintain it, unlike the PS, pre-world-init initialization for subsystems, ease of ports from /tg/station13, and potential performance improvement (to be seen).
10 lines
416 B
Plaintext
10 lines
416 B
Plaintext
#define TICK_LIMIT_RUNNING 80
|
|
#define TICK_LIMIT_TO_RUN 70
|
|
#define TICK_LIMIT_MC 70
|
|
#define TICK_LIMIT_MC_INIT_DEFAULT 98
|
|
|
|
#define TICK_USAGE world.tick_usage //for general usage
|
|
#define TICK_USAGE_REAL world.tick_usage //to be used where the result isn't checked
|
|
|
|
#define TICK_CHECK ( world.tick_usage > TICK_LIMIT_RUNNING ? stoplag() : 0 )
|
|
#define CHECK_TICK if(world.tick_usage > TICK_LIMIT_RUNNING) stoplag() |