mirror of
https://github.com/PabloMK7/citra.git
synced 2024-12-28 02:26:13 +00:00
renderer_vulkan: Reduce amount of wait semaphores
This commit is contained in:
parent
40851682ce
commit
c697aaf656
|
@ -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