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

[re_renderer] fix bindgroup reuse regression #1385

Merged
merged 7 commits into from
Feb 27, 2023

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Feb 23, 2023

Caused a subtle bug in #1374 that made "weak" handles no longer stable accross intra-frame resource re-use. This in turn caused the BindGroupPool to fail to re-use bindgroups from previous frames as it stores weak handles in its descriptor.

In other words, RUST_LOG=debug cargo run --example 2d got very spammy, now it is nice and quiet again!

Added a test to prevent this from breaking again.

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I've added a line to CHANGELOG.md (if this is a big enough change to warrant it)

@Wumpf Wumpf added 🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself labels Feb 23, 2023
@teh-cmc teh-cmc requested review from teh-cmc and removed request for teh-cmc February 24, 2023 11:12
@Wumpf Wumpf merged commit 3f58921 into main Feb 27, 2023
@Wumpf Wumpf deleted the andreas/re_renderer/fix-bindgroup-reuse-regression branch February 27, 2023 13:11
emilk pushed a commit that referenced this pull request Mar 2, 2023
* Fix dynamic resource pool handles not being stable on re-use
* Add test for dynamic resource pool handles not changing upon resource re-use
* DynamicResourcePool debug asserts now on missing resources on deallocation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants