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 Command pool optimization #3065

Merged
merged 2 commits into from
Oct 5, 2022
Merged

Vulkan Command pool optimization #3065

merged 2 commits into from
Oct 5, 2022

Conversation

gents83
Copy link
Contributor

@gents83 gents83 commented Oct 5, 2022

Looking at Vulkan Samples and other Vulkan materials even on mobile it seems that the right way to manage command pools in a transient way as they are used by wgpu should be enabling the right flag and resetting it without any flags.

Vulkan Samples:
https://github.com/KhronosGroup/Vulkan-Samples/blob/master/framework/core/command_pool.cpp

Arm Mobile developer:
https://arm-software.github.io/vulkan_best_practice_for_mobile_developers/samples/performance/command_buffer_usage/command_buffer_usage_tutorial.html

In my local profilings in my proto engine we're passing from around 9ms to around 800μs (more than 10x speedup)
No warning on leaks from validation layers is appearing in RenderDoc on my side too.

Copy link
Member

@cwfitzgerald cwfitzgerald left a comment

Choose a reason for hiding this comment

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

LGTM

@cwfitzgerald cwfitzgerald merged commit 7b8dd4e into gfx-rs:master Oct 5, 2022
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