Skip to content

Commit

Permalink
Added log when first frame was presented
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Dec 22, 2023
1 parent 301579c commit b0c4154
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/imgui/D3D11/imgui_impl_dx11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,16 @@ ImGui_ImplDX11_SwapBuffers ( ImGuiViewport *viewport,
// WaitForSingleObject (data->WaitHandle, INFINITE);

if (SUCCEEDED (data->SwapChain->Present (Interval, PresentFlags)))
{
data->PresentCount++;

static bool
runOnce = true;
if (runOnce)
{ runOnce = false;
PLOG_INFO << "Presented first frame!";
}
}
}
}

Expand Down

0 comments on commit b0c4154

Please sign in to comment.