[MIRROR] Atmos init speedup, saves 4 seconds [MDB IGNORE] (#16090)

* Atmos init speedup, saves 4 seconds (#69697)

* Micro optimizes ssair's turf init, saving 2 seconds

Most of this is making existing operations do more legwork, or cheaper.
I did add cycle checking to ONLY init turf linking, which required
creating a new proc.
Did some horrible horrible things in said proc to save like 0.8 seconds.
I think it was worth it.

* Atmos init speedup, saves 4 seconds

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2022-09-06 17:24:54 +02:00
committed by GitHub
parent f5d6b611d3
commit 9cc7e72158
18 changed files with 165 additions and 100 deletions

View File

@@ -14,7 +14,7 @@
SSair.remove_from_active(T)
for(var/turf/open/T in map)
if(T.air)
T.air.copy_from_turf(T)
T.air = T.create_gas_mixture()
SSair.add_to_active(T, TRUE)
/datum/map_generator_module/bottom_layer/massdelete