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.
This commit is contained in:
LemonInTheDark
2022-09-06 02:53:46 -07:00
committed by GitHub
parent 259c72a68a
commit dff635b7f6
18 changed files with 165 additions and 100 deletions
@@ -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