diff options
| author | Scott Mansell <phiren@gmail.com> | 2021-09-29 15:23:59 +1300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-29 15:23:59 +1300 |
| commit | a963829ab61d40b9b7b1f63ba016ffb86119a284 (patch) | |
| tree | 5d7526a41a6512f1117f44bd7a503c24fb368179 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | 753a1595bfe2db1cd4d8312e992901fc3e4da5d8 (diff) | |
| parent | 53ca2ec27479f3c0228b3d53f8e0b5d1424c7ae0 (diff) | |
Merge pull request #10134 from malleoz/framecount-in-input-display
RenderBase: show total framecount on movie playback
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index 07fa239bba..22916816eb 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -559,15 +559,17 @@ void Renderer::DrawDebugText() ImGui::GetIO().DisplaySize); if (ImGui::Begin("Movie", nullptr, ImGuiWindowFlags_NoFocusOnAppearing)) { - if (config.m_ShowFrameCount) - { - ImGui::Text("Frame: %" PRIu64, Movie::GetCurrentFrame()); - } if (Movie::IsPlayingInput()) { + ImGui::Text("Frame: %" PRIu64 " / %" PRIu64, Movie::GetCurrentFrame(), + Movie::GetTotalFrames()); ImGui::Text("Input: %" PRIu64 " / %" PRIu64, Movie::GetCurrentInputCount(), Movie::GetTotalInputCount()); } + else if (config.m_ShowFrameCount) + { + ImGui::Text("Frame: %" PRIu64, Movie::GetCurrentFrame()); + } if (SConfig::GetInstance().m_ShowLag) ImGui::Text("Lag: %" PRIu64 "\n", Movie::GetCurrentLagCount()); if (SConfig::GetInstance().m_ShowInputDisplay) |
