Skip to content

Commit

Permalink
Fix instance uniform data buffer update delay
Browse files Browse the repository at this point in the history
  • Loading branch information
bitsawer committed Jul 18, 2023
1 parent 57919be commit 7a97837
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions servers/rendering/renderer_scene_cull.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3994,11 +3994,12 @@ void RendererSceneCull::_update_dirty_instance(Instance *p_instance) {
}

void RendererSceneCull::update_dirty_instances() {
RSG::utilities->update_dirty_resources();

while (_instance_update_list.first()) {
_update_dirty_instance(_instance_update_list.first()->self());
}

// Update dirty resources after dirty instances as instance updates may affect resources.
RSG::utilities->update_dirty_resources();
}

void RendererSceneCull::update() {
Expand Down

0 comments on commit 7a97837

Please sign in to comment.