Browse Source
[vk] Introduce Ring Buffers for Uniform Buffer (#2698)
[vk] Introduce Ring Buffers for Uniform Buffer (#2698)
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. Co-authored-by: wildcard <wildcard@eden-emu.dev> Co-authored-by: MaranBr <maranbr@outlook.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2698 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Co-authored-by: Shinmegumi <shinmegumi@eden-emu.dev> Co-committed-by: Shinmegumi <shinmegumi@eden-emu.dev>pull/2713/head
committed by
crueter
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
2 changed files with 72 additions and 2 deletions
-
42src/video_core/renderer_vulkan/vk_buffer_cache.cpp
-
32src/video_core/renderer_vulkan/vk_buffer_cache.h
Write
Preview
Loading…
Cancel
Save
Reference in new issue