Browse Source
[Vulkan] Introduce Ring buffers for UB
[Vulkan] Introduce Ring buffers for UB
Create 3 ring buffers which rotates between buffers each frame to avoid GPU/CPU conflicts BindMappedUniformBuffer first tries to allocate from the ring buffer and falls back to staging pool only if allocation is too large. Note to testers:- please test the performance since it is primarily a performance optimization and also look for visual bugs.pull/2698/head
committed by
crueter
2 changed files with 69 additions and 2 deletions
-
42src/video_core/renderer_vulkan/vk_buffer_cache.cpp
-
29src/video_core/renderer_vulkan/vk_buffer_cache.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue