Skip to content

Fix: Avoid recursive object traversal during multi-threaded mesh updates#18

Merged
dvicini merged 2 commits into
mainfrom
fix_recursive_traversal_race
Jul 17, 2026
Merged

Fix: Avoid recursive object traversal during multi-threaded mesh updates#18
dvicini merged 2 commits into
mainfrom
fix_recursive_traversal_race

Conversation

@dvicini

@dvicini dvicini commented Jul 17, 2026

Copy link
Copy Markdown
Collaborator

Fixes a Dr.Jit concurrency issue when traversing objects in parallel. Specifically, during mesh/curve scene updates, we would (unnecessarily) recursively traverse BSDF instances. The BSDF instances are potentially shared across shapes, leading to race conditions / undefined behavior. The fix simply makes sure we do not recursively traverse these objects. This should fix some of the flaky tests we have observed.

@dvicini
dvicini merged commit 03a1c00 into main Jul 17, 2026
9 checks passed
@dvicini
dvicini deleted the fix_recursive_traversal_race branch July 20, 2026 12:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant