[vk] Add missing flush per spec #2624
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "Ribbit/ribbitvulkanadditions:layerchange"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
508f3c1f69
to38e05e205f
38e05e205f
to7f6d234845
WIP: [vk] Add missing flush per specto [vk] Add missing flush per spec7f6d234845
tofab4fb05a7
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.