mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
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:
@@ -38,8 +38,7 @@
|
||||
update_mob()
|
||||
playsound(src, 'sound/effects/spray2.ogg', 100, TRUE)
|
||||
var/list/connected_turfs = detect_room(origin = get_turf(src), max_size = fix_range)
|
||||
var/datum/gas_mixture/base_mix = new
|
||||
base_mix.parse_gas_string(OPENTURF_DEFAULT_ATMOS)
|
||||
var/datum/gas_mixture/base_mix = SSair.parse_gas_string(OPENTURF_DEFAULT_ATMOS)
|
||||
for(var/turf/open/turf_fix in connected_turfs)
|
||||
if(turf_fix.blocks_air)
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user