mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-07-03 21:41:19 +12:00
Vulkan: Remove unecessary present fence (#1166)
This commit is contained in:
parent
391533dbe5
commit
84cad8b280
5 changed files with 10 additions and 51 deletions
|
@ -1824,11 +1824,6 @@ void VulkanRenderer::DrawEmptyFrame(bool mainWindow)
|
|||
SwapBuffers(mainWindow, !mainWindow);
|
||||
}
|
||||
|
||||
void VulkanRenderer::PreparePresentationFrame(bool mainWindow)
|
||||
{
|
||||
AcquireNextSwapchainImage(mainWindow);
|
||||
}
|
||||
|
||||
void VulkanRenderer::InitFirstCommandBuffer()
|
||||
{
|
||||
cemu_assert_debug(m_state.currentCommandBuffer == nullptr);
|
||||
|
@ -2599,7 +2594,7 @@ bool VulkanRenderer::AcquireNextSwapchainImage(bool mainWindow)
|
|||
if (!UpdateSwapchainProperties(mainWindow))
|
||||
return false;
|
||||
|
||||
bool result = chainInfo.AcquireImage(UINT64_MAX);
|
||||
bool result = chainInfo.AcquireImage();
|
||||
if (!result)
|
||||
return false;
|
||||
|
||||
|
@ -2612,8 +2607,6 @@ void VulkanRenderer::RecreateSwapchain(bool mainWindow, bool skipCreate)
|
|||
SubmitCommandBuffer();
|
||||
WaitDeviceIdle();
|
||||
auto& chainInfo = GetChainInfo(mainWindow);
|
||||
// make sure fence has no signal operation submitted
|
||||
chainInfo.WaitAvailableFence();
|
||||
|
||||
Vector2i size;
|
||||
if (mainWindow)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue