Significantly speed up testing server boot (#2846)

Dramatically speeds up boot with testing (MC_TICKLIMIT_INIT > 100) configs; stoplag() would penalize procs that go over 100% tick-usage by delaying them further. This is not required during server boot & the lobby, and resulted in significantly longer boot times.

This PR ports a fix from /tg/ that forces stoplag() only sleep 1 tick if it sleeps during server boot, as well as adjusting the example config to be more suited for testing.
This commit is contained in:
Lohikar
2017-06-28 16:20:14 -05:00
committed by skull132
parent 9b00464951
commit ce54f5a76c
4 changed files with 18 additions and 14 deletions
@@ -37,6 +37,8 @@
shuttle_controller.setup_shuttle_docks()
admin_notice("<span class='notice'><b>Fastboot is enabled; some features may not be available.</b></span>", R_DEBUG)
..(timeofday, TRUE)
/proc/resort_all_areas()