mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
only flush pending dirty resources while idle
This commit is contained in:
@@ -450,9 +450,11 @@ VkResult WrappedVulkan::vkQueuePresentKHR(
|
||||
VkPresentInfoKHR* pPresentInfo)
|
||||
{
|
||||
if(m_State == WRITING_IDLE)
|
||||
{
|
||||
RenderDoc::Inst().Tick();
|
||||
|
||||
GetResourceManager()->FlushPendingDirty();
|
||||
GetResourceManager()->FlushPendingDirty();
|
||||
}
|
||||
|
||||
m_FrameCounter++; // first present becomes frame #1, this function is at the end of the frame
|
||||
|
||||
|
||||
Reference in New Issue
Block a user