diff --git a/drape/vulkan/vulkan_base_context.cpp b/drape/vulkan/vulkan_base_context.cpp index b7d42ea6aa..c82e7d3a24 100644 --- a/drape/vulkan/vulkan_base_context.cpp +++ b/drape/vulkan/vulkan_base_context.cpp @@ -207,9 +207,10 @@ bool VulkanBaseContext::BeginRendering() m_frameCounter++; - // Here we also wait no longer than kTimeoutNanoseconds. In this case we have to - // recreate synchronization primitives, because one of fences can be reset. - res = vkAcquireNextImageKHR(m_device, m_swapchain, kTimeoutNanoseconds, + // FIXME: Infinite timeouts are not supported on Android for vkAcquireNextImageKHR. + // "vkAcquireNextImageKHR: non-infinite timeouts not yet implemented" + // https://android.googlesource.com/platform/frameworks/native/+/refs/heads/master/vulkan/libvulkan/swapchain.cpp + res = vkAcquireNextImageKHR(m_device, m_swapchain, std::numeric_limits::max() /* kTimeoutNanoseconds */, m_acquireSemaphores[m_inflightFrameIndex], VK_NULL_HANDLE, &m_imageIndex); if (res == VK_TIMEOUT)