From 66d27df12f5b710ac5f569144944c1db0c86c96b Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Thu, 10 Feb 2022 20:21:28 +0100 Subject: [PATCH] Fix 3D sky update performance regression --- servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp b/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp index fb36190c3ea..354516ae87b 100644 --- a/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_scene_sky_rd.cpp @@ -1172,7 +1172,7 @@ void RendererSceneSkyRD::setup(RendererSceneEnvironmentRD *p_env, RID p_render_b } } // Check whether the directional_light_buffer changes - bool light_data_dirty = true; + bool light_data_dirty = false; // Light buffer is dirty if we have fewer or more lights // If we have fewer lights, make sure that old lights are disabled