mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-22 04:22:39 +01:00
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:
@@ -46,7 +46,7 @@ var/list/gamemode_cache = list()
|
||||
var/continous_rounds = 0 // Gamemodes which end instantly will instead keep on going until the round ends by escape shuttle or nuke.
|
||||
var/allow_Metadata = 0 // Metadata is supported.
|
||||
var/popup_admin_pm = 0 //adminPMs to non-admins show in a pop-up 'reply' window when set to 1.
|
||||
var/Ticklag = 0.9
|
||||
var/Ticklag = 0.4
|
||||
var/Tickcomp = 0
|
||||
var/list/resource_urls = null
|
||||
var/antag_hud_allowed = 0 // Ghosts can turn on Antagovision to see a HUD of who is the bad guys this round.
|
||||
@@ -286,11 +286,6 @@ var/list/gamemode_cache = list()
|
||||
src.votable_modes += M.config_tag
|
||||
src.votable_modes += "secret"
|
||||
|
||||
#ifdef UNIT_TEST
|
||||
fastboot = TRUE
|
||||
world.log << "UNIT_TEST present. Forcing fastboot on."
|
||||
#endif
|
||||
|
||||
/datum/configuration/proc/load(filename, type = "config") //the type can also be game_options, in which case it uses a different switch. not making it separate to not copypaste code - Urist
|
||||
var/list/Lines = file2list(filename)
|
||||
|
||||
@@ -827,6 +822,7 @@ var/list/gamemode_cache = list()
|
||||
|
||||
if("fastboot")
|
||||
fastboot = TRUE
|
||||
world.log << "Fastboot is ENABLED."
|
||||
|
||||
else
|
||||
log_misc("Unknown setting in configuration: '[name]'")
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user