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

Bind group deduplication #2623

Merged
merged 3 commits into from
Apr 25, 2022
Merged

Conversation

cwfitzgerald
Copy link
Member

Connections

One component of BVE-Reborn/rend3#350

Description

This adds immediate bind group deduplication and makes pipeline deduplication immediate. This happens before the commands are even recorded to get them as early as possible. It intentionally goes out of its way to not deduplicate bind group calls with dynamic offsets.

I haven't done any other kinds of bindings because I don't know how much they show up as performance issues in practice. Bind groups are expensive enough that deduplicating them is easy enough.

Testing

Test suite

Copy link
Member

@kvark kvark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks reasonably light.

@cwfitzgerald cwfitzgerald enabled auto-merge (squash) April 25, 2022 04:15
@cwfitzgerald cwfitzgerald merged commit bc850d2 into gfx-rs:master Apr 25, 2022
@cwfitzgerald cwfitzgerald deleted the dedupe-bind-groups branch April 25, 2022 04:20
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.

2 participants