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

Implement a Vulkan Allocator or use VulkanMemoryAllocator library #68

Open
tiawl opened this issue Jun 24, 2023 · 0 comments
Open

Implement a Vulkan Allocator or use VulkanMemoryAllocator library #68

tiawl opened this issue Jun 24, 2023 · 0 comments
Labels
generator Related to the generator
Milestone

Comments

@tiawl
Copy link
Owner

tiawl commented Jun 24, 2023

https://vulkan-tutorial.com/en/Vertex_buffers/Staging_buffer#page_Conclusion specifies:

It should be noted that in a real world application, you're not supposed to actually call
[vkAllocateMemory](https://www.khronos.org/registry/vulkan/specs/1.0/man/html/vkAllocateMemory.html) for every
individual buffer. The maximum number of simultaneous memory allocations is limited by the 
maxMemoryAllocationCount physical device limit, which may be as low as 4096 even on high end hardware like an 
NVIDIA GTX 1080. The right way to allocate memory for a large number of objects at the same time is to create
a custom allocator that splits up a single allocation among many different objects by using the offset
parameters that we've seen in many functions.

You can either implement such an allocator yourself, or use the
[VulkanMemoryAllocator](https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator) library provided by
the GPUOpen initiative.
@tiawl tiawl added stage generator Related to the generator labels Jun 24, 2023
@tiawl tiawl added this to the 0.1.0 milestone Jun 24, 2023
@tiawl tiawl removed the stage label May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
generator Related to the generator
Projects
None yet
Development

No branches or pull requests

1 participant