mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Reduce image acquire timeout down to 2 seconds to be safe
This commit is contained in:
@@ -910,8 +910,8 @@ void VulkanReplay::BindOutputWindow(uint64_t id, bool depth)
|
||||
vkr = vt->CreateSemaphore(Unwrap(dev), &semInfo, NULL, &sem);
|
||||
m_pDriver->CheckVkResult(vkr);
|
||||
|
||||
vkr = vt->AcquireNextImageKHR(Unwrap(dev), Unwrap(outw.swap), UINT64_MAX, sem, VK_NULL_HANDLE,
|
||||
&outw.curidx);
|
||||
vkr = vt->AcquireNextImageKHR(Unwrap(dev), Unwrap(outw.swap), 2000000000ULL, sem,
|
||||
VK_NULL_HANDLE, &outw.curidx);
|
||||
|
||||
if(vkr == VK_ERROR_OUT_OF_DATE_KHR)
|
||||
{
|
||||
@@ -922,8 +922,8 @@ void VulkanReplay::BindOutputWindow(uint64_t id, bool depth)
|
||||
CheckResizeOutputWindow(id);
|
||||
|
||||
// then try again to acquire.
|
||||
vkr = vt->AcquireNextImageKHR(Unwrap(dev), Unwrap(outw.swap), UINT64_MAX, sem, VK_NULL_HANDLE,
|
||||
&outw.curidx);
|
||||
vkr = vt->AcquireNextImageKHR(Unwrap(dev), Unwrap(outw.swap), 2000000000ULL, sem,
|
||||
VK_NULL_HANDLE, &outw.curidx);
|
||||
}
|
||||
|
||||
if(vkr == VK_SUBOPTIMAL_KHR)
|
||||
|
||||
Reference in New Issue
Block a user