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

Vulkan: Delete smaller descriptor pools. #127

Merged
merged 3 commits into from
Jun 13, 2024

Conversation

skejeton
Copy link
Contributor

@skejeton skejeton commented Jun 8, 2024

This fixes a bug where the smaller descriptor sub pools are left unused.

@kvark
Copy link
Owner

kvark commented Jun 9, 2024

It wasn't actually a bug, it was done intentionally. The code is simpler if we only use one pool, and with pools growing in size 16x, the extra capacity is just 1/16th, it's arguably negligible.

@skejeton
Copy link
Contributor Author

skejeton commented Jun 9, 2024

It wasn't actually a bug, it was done intentionally. The code is simpler if we only use one pool, and with pools growing in size 16x, the extra capacity is just 1/16th, it's arguably negligible.

Hmm got it, would it be better to release the unused pools then?

@kvark
Copy link
Owner

kvark commented Jun 10, 2024

that would make sense, yeah!

@skejeton
Copy link
Contributor Author

Alright, I'll try doing it this evening.

@skejeton
Copy link
Contributor Author

Done.

Copy link
Owner

@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.

Thank you!

blade-graphics/src/vulkan/descriptor.rs Outdated Show resolved Hide resolved
blade-graphics/src/vulkan/descriptor.rs Outdated Show resolved Hide resolved
@skejeton
Copy link
Contributor Author

fixed

@skejeton skejeton changed the title Vulkan: Reuse unused descriptor pools. Vulkan: Delete smaller descriptor pools. Jun 12, 2024
@kvark kvark enabled auto-merge (squash) June 13, 2024 02:00
@kvark kvark merged commit 2845b75 into kvark:main Jun 13, 2024
5 checks passed
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