Merge pull request #57933 from Calinou/fix-sky-update-performance

Fix 3D sky update performance regression
This commit is contained in:
Clay John 2022-02-10 13:00:26 -08:00 committed by GitHub
commit 2362c58067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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