mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
remove lighting area GC for now
it's causing more lag than it's helping Signed-off-by: Mloc-Argent <colmohici@gmail.com> Conflicts: code/controllers/lighting_controller.dm
This commit is contained in:
@@ -74,6 +74,7 @@ datum/light_source
|
||||
changed = 1
|
||||
|
||||
if (owner.l_color != _l_color)
|
||||
readrgb(owner.l_color)
|
||||
changed = 1
|
||||
|
||||
if(changed)
|
||||
|
||||
@@ -16,7 +16,6 @@ datum/controller/lighting
|
||||
var/list/changed_turfs = list()
|
||||
var/changed_turfs_workload_max = 0
|
||||
|
||||
var/list/changed_areas = list()
|
||||
|
||||
datum/controller/lighting/New()
|
||||
lighting_states = max( 0, length(icon_states(LIGHTING_ICON))-1 )
|
||||
@@ -55,19 +54,9 @@ datum/controller/lighting/proc/process()
|
||||
for(var/i=1, i<=changed_turfs.len, i++)
|
||||
var/turf/T = changed_turfs[i]
|
||||
if(T && T.lighting_changed)
|
||||
changed_areas |= T.loc
|
||||
T.shift_to_subarea()
|
||||
changed_turfs.Cut() // reset the changed list
|
||||
|
||||
for(var/i = 1; i <= changed_areas.len, i++)
|
||||
var/area/A = changed_areas[i]
|
||||
if(A.master != A && !A.contents.len)
|
||||
A.tag = null
|
||||
A.related -= A
|
||||
active_areas -= A
|
||||
all_areas -= A
|
||||
changed_areas.Cut()
|
||||
|
||||
process_cost = (world.timeofday - started)
|
||||
|
||||
sleep(processing_interval)
|
||||
|
||||
Reference in New Issue
Block a user