mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 19:44:09 +01:00
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:
@@ -157,8 +157,7 @@ SUBSYSTEM_DEF(air)
|
||||
in_milla_safe_code = TRUE
|
||||
|
||||
setup_overlays() // Assign icons and such for gas-turf-overlays
|
||||
setup_allturfs()
|
||||
setup_write_to_milla()
|
||||
setup_turfs()
|
||||
setup_atmos_machinery(GLOB.machines)
|
||||
setup_pipenets(GLOB.machines)
|
||||
for(var/obj/machinery/atmospherics/A in machinery_to_construct)
|
||||
@@ -614,14 +613,10 @@ SUBSYSTEM_DEF(air)
|
||||
last_bound_mixtures = length(bound_mixtures)
|
||||
return
|
||||
|
||||
/datum/controller/subsystem/air/proc/setup_allturfs(list/turfs_to_init = block(locate(1, 1, 1), locate(world.maxx, world.maxy, world.maxz)))
|
||||
for(var/turf/T as anything in turfs_to_init)
|
||||
T.Initialize_Atmos(times_fired)
|
||||
CHECK_TICK
|
||||
|
||||
/datum/controller/subsystem/air/proc/setup_allturfs_sleepless(list/turfs_to_init = block(locate(1, 1, 1), locate(world.maxx, world.maxy, world.maxz)))
|
||||
for(var/turf/T as anything in turfs_to_init)
|
||||
/datum/controller/subsystem/air/proc/setup_turfs(turf/low_corner = locate(1, 1, 1), turf/high_corner = locate(world.maxx, world.maxy, world.maxz))
|
||||
for(var/turf/T as anything in block(low_corner, high_corner))
|
||||
T.Initialize_Atmos(times_fired)
|
||||
milla_load_turfs(low_corner, high_corner)
|
||||
|
||||
/datum/controller/subsystem/air/proc/setup_write_to_milla()
|
||||
var/watch = start_watch()
|
||||
|
||||
Reference in New Issue
Block a user