[vk] Introduce Ring Buffers for Uniform Buffer #2698

Open
Shinmegumi wants to merge 3 commits from buffercache into master

3 commits

Author SHA1 Message Date
490479a028 Fix headers
All checks were successful
eden-license / license-header (pull_request) Successful in 28s
2025-10-10 11:23:41 -04:00
217e55a479 Update src/video_core/renderer_vulkan/vk_buffer_cache.cpp
Some checks failed
eden-license / license-header (pull_request) Failing after 25s
2025-10-10 14:49:46 +02:00
1ff57fdf6b [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.
2025-10-10 14:49:46 +02:00