Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix instance uniform data buffer update delay #79603

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading