[vk] Add missing flush per spec #2624

Merged
MaranBr merged 1 commit from Ribbit/ribbitvulkanadditions:layerchange into master 2025-10-02 20:00:35 +02:00
Contributor

We copy pixels into a CPU-side staging buffer and then ask the GPU to read from it. On some systems those CPU writes aren’t automatically visible to the GPU unless explicitly flushed, so the GPU can sometimes read stale data. By calling buffer.Flush() immediately after writing, we force those CPU changes to become visible to the device, ensuring the GPU sees the latest frame. However, this is an emulator, so sometimes what spec says may not work cause reasons.

We copy pixels into a CPU-side staging buffer and then ask the GPU to read from it. On some systems those CPU writes aren’t automatically visible to the GPU unless explicitly flushed, so the GPU can sometimes read stale data. By calling buffer.Flush() immediately after writing, we force those CPU changes to become visible to the device, ensuring the GPU sees the latest frame. However, this is an emulator, so sometimes what spec says may not work cause reasons.
Ribbit added 1 commit 2025-09-30 04:01:42 +02:00
[vk] Add missing flush per spec
All checks were successful
eden-license / license-header (pull_request) Successful in 21s
508f3c1f69
Ribbit force-pushed layerchange from 508f3c1f69 to 38e05e205f 2025-09-30 13:24:52 +02:00 Compare
Shinmegumi force-pushed layerchange from 38e05e205f to 7f6d234845 2025-10-01 01:30:12 +02:00 Compare
Shinmegumi changed title from WIP: [vk] Add missing flush per spec to [vk] Add missing flush per spec 2025-10-02 17:49:50 +02:00
requested reviews from Lizzie, CamilleLaVey, Maufeat, crueter, MrPurple666, MaranBr 2025-10-02 17:49:51 +02:00
Shinmegumi force-pushed layerchange from 7f6d234845 to fab4fb05a7 2025-10-02 17:49:58 +02:00 Compare
Shinmegumi approved these changes 2025-10-02 17:50:14 +02:00
Owner

Tested and confirmed that this does help reduce flicker or eliminate it in a number of titles. Performance has not been shown to be affected by this PR. Approved.

Tested and confirmed that this does help reduce flicker or eliminate it in a number of titles. Performance has not been shown to be affected by this PR. Approved.
MaranBr approved these changes 2025-10-02 18:14:43 +02:00
MaranBr merged commit 990a43a48c into master 2025-10-02 20:00:35 +02:00
Sign in to join this conversation.
No description provided.