LINDA Performance Refactor (#15384)

* LINDA Performance Refactor

* forget about this

* very important refactor content
This commit is contained in:
Fox McCloud
2021-02-06 16:50:11 -05:00
committed by GitHub
parent 11c0bea9bd
commit b3b11a81c5
16 changed files with 181 additions and 272 deletions

View File

@@ -280,12 +280,8 @@ SUBSYSTEM_DEF(air)
if(blockchanges && T.excited_group)
T.excited_group.garbage_collect()
else
for(var/direction in GLOB.cardinal)
if(!(T.atmos_adjacent_turfs & direction))
continue
var/turf/simulated/S = get_step(T, direction)
if(istype(S))
add_to_active(S)
for(var/turf/simulated/S in T.atmos_adjacent_turfs)
add_to_active(S)
/datum/controller/subsystem/air/proc/setup_allturfs(var/list/turfs_to_init = block(locate(1, 1, 1), locate(world.maxx, world.maxy, world.maxz)))
var/list/active_turfs = src.active_turfs