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

Cache results of some PhysicalDevice methods for faster future retrieval #2006

Merged
merged 7 commits into from
Oct 2, 2022

Conversation

Rua
Copy link
Contributor

@Rua Rua commented Sep 27, 2022

Changelog:

### Additions
- Some methods of `PhysicalDevice` now cache their results, so that another call with the same arguments will retrieve them faster.

While some of these Vulkan API functions may be relatively fast to call on some drivers, we can't know for sure. I expect that looking up and cloning a hashmap entry is probably going to be faster as it does not depend on the driver implementation.

Copy link
Member

@AustinJ235 AustinJ235 left a comment

Choose a reason for hiding this comment

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

Looks good!

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