From 9f08551a4c69602fbe0dc2c81d38e0475ef5b7bd Mon Sep 17 00:00:00 2001 From: Mloc-Argent Date: Sun, 14 Sep 2014 17:36:23 +0100 Subject: [PATCH] remove lighting area GC for now it's causing more lag than it's helping Signed-off-by: Mloc-Argent Conflicts: code/controllers/lighting_controller.dm --- code/controllers/_DynamicAreaLighting_TG.dm | 1 + code/controllers/lighting_controller.dm | 11 ----------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/code/controllers/_DynamicAreaLighting_TG.dm b/code/controllers/_DynamicAreaLighting_TG.dm index 03ea77affc..a93a7b6440 100644 --- a/code/controllers/_DynamicAreaLighting_TG.dm +++ b/code/controllers/_DynamicAreaLighting_TG.dm @@ -74,6 +74,7 @@ datum/light_source changed = 1 if (owner.l_color != _l_color) + readrgb(owner.l_color) changed = 1 if(changed) diff --git a/code/controllers/lighting_controller.dm b/code/controllers/lighting_controller.dm index ccd883a393..08c29e1a07 100644 --- a/code/controllers/lighting_controller.dm +++ b/code/controllers/lighting_controller.dm @@ -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)