Initialize Atmospherics much faster (#27862)

* Read atmos from MILLA instead.

* Runtime fix

* Build Rust library

---------

Co-authored-by: paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
This commit is contained in:
Charlie Nolan
2025-01-07 00:55:02 +00:00
committed by GitHub
co-authored by paradisess13[bot] <165046124+paradisess13[bot]@users.noreply.github.com>
parent 2fd9200036
commit 24f6787b91
10 changed files with 103 additions and 51 deletions
+3 -3
View File
@@ -1,18 +1,18 @@
/datum/milla_safe/late_setup_level
// Ensures that atmos and environment are set up.
/datum/milla_safe/late_setup_level/on_run(turfs, smoothTurfs)
/datum/milla_safe/late_setup_level/on_run(turf/bot_left, turf/top_right, smoothTurfs)
var/total_timer = start_watch()
var/subtimer = start_watch()
if(!smoothTurfs)
smoothTurfs = turfs
smoothTurfs = block(bot_left, top_right)
log_debug("Setting up atmos")
/* setup_allturfs is superfluous during server initialization because
* air subsystem will call subsequently call setup_allturfs with _every_
* turf in the world */
if(SSair && SSair.initialized)
SSair.setup_allturfs_sleepless(turfs)
SSair.setup_turfs(bot_left, top_right)
log_debug("\tTook [stop_watch(subtimer)]s")
subtimer = start_watch()