mirror of
https://github.com/PabloMK7/citra
synced 2024-11-14 20:58:23 +00:00
renderer_vulkan: Reduce amount of wait semaphores
This commit is contained in:
parent
40851682ce
commit
c697aaf656
1 changed files with 3 additions and 3 deletions
|
@ -68,9 +68,9 @@ void MasterSemaphoreTimeline::SubmitWork(vk::CommandBuffer cmdbuf, vk::Semaphore
|
||||||
const std::array signal_values{signal_value, u64(0)};
|
const std::array signal_values{signal_value, u64(0)};
|
||||||
const std::array signal_semaphores{Handle(), signal};
|
const std::array signal_semaphores{Handle(), signal};
|
||||||
|
|
||||||
const u32 num_wait_semaphores = wait ? 2U : 1U;
|
const u32 num_wait_semaphores = wait ? 1U : 0U;
|
||||||
const std::array wait_values{signal_value - 1, u64(1)};
|
const std::array wait_values{u64(1)};
|
||||||
const std::array wait_semaphores{Handle(), wait};
|
const std::array wait_semaphores{wait};
|
||||||
|
|
||||||
static constexpr std::array<vk::PipelineStageFlags, 2> wait_stage_masks = {
|
static constexpr std::array<vk::PipelineStageFlags, 2> wait_stage_masks = {
|
||||||
vk::PipelineStageFlagBits::eAllCommands,
|
vk::PipelineStageFlagBits::eAllCommands,
|
||||||
|
|
Loading…
Reference in a new issue