Files
Bubberstation/code/controllers
Kyle Spier-Swenson 6e6f3365e2 Master Controller lag fixes
When the MC is making up missed subsystem fires from lag, it will now only fire that subsystem at most, half of that subsystem's normal fire rate until missed fires are made up, rather than firing as quick as possible making lag worst.

When a subsystem causes byond to miss a byond tick, it will stop processing subsystems and sleep for two extra byond ticks on top of its normal sleep rate.

When the cpu is above 80%, the MC will also sleep for twice as long between ticks (stacks with the change above)

The processing interval of the MC is now capped to a lower bound of two byond ticks or 1ds, whatever is lower.

Dwait now scales with the cpu usage var. 10% cpu adds 10% extra to dwait, 50% cpu adds 50% extra to dwait, etc.
2015-11-25 15:06:50 -08:00
..