diff options
author | riperiperi <rhy3756547@hotmail.com> | 2022-11-18 14:58:56 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-18 14:58:56 +0000 |
commit | 131baebe2a569cfe8533aa57ca6df2c8f846f6ad (patch) | |
tree | 08fb5c09d9b455ddae1b6a95fa8a1c3aeb803903 /ARMeilleure/Signal | |
parent | 187372cbde56a8892e4810d8c99d6e2debd96ad5 (diff) |
Vulkan: Don't create preload command buffer outside a render pass (#3864)1.1.361
* Vulkan: Don't create preload buffer outside a render pass
The preload command buffer is used to avoid render pass splits and barriers when updating buffer data. However, when a render pass is not active (for example, at the start of a pass, or during compute invocations) buffer uploads can be performed at any time, so the optimization isn't as useful.
This PR makes it so that the preload command buffer is only used for buffer updates outside of a render pass. It's still used for textures as I don't want to shake things up right now regarding how the preload buffer is obtained before some other changes, and texture updates are a lot rarer anyways.
Improves performance slightly in Pokemon Scarlet/Violet (43 -> 48), as it was switching to compute, writing a bunch of buffers inline, then dispatching, then flushing commands... It uses 1 command buffer instead of 2 every time it does this now. Maybe it would be nice to find a faster way to sync without creating so many command buffers in a short period of time.
* Address feedback
Diffstat (limited to 'ARMeilleure/Signal')
0 files changed, 0 insertions, 0 deletions