Vulkan: Log when a swap chain resize is occurring
This may help us debug performance problems in the future.
This commit is contained in:
parent
4f01dad469
commit
ead65b0d8c
|
@ -305,6 +305,7 @@ void Renderer::BindBackbuffer(const ClearColor& clear_color)
|
||||||
}
|
}
|
||||||
else if (res == VK_SUBOPTIMAL_KHR || res == VK_ERROR_OUT_OF_DATE_KHR)
|
else if (res == VK_SUBOPTIMAL_KHR || res == VK_ERROR_OUT_OF_DATE_KHR)
|
||||||
{
|
{
|
||||||
|
INFO_LOG(VIDEO, "Resizing swap chain due to suboptimal/out-of-date");
|
||||||
m_swap_chain->ResizeSwapChain();
|
m_swap_chain->ResizeSwapChain();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue