2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 17:44:56 +00:00

Merge pull request #364 from SirMangler/fpscounter

CGraphics: FPS Counter and debug overlay
This commit is contained in:
2021-01-14 13:43:59 -08:00
committed by GitHub
3 changed files with 28 additions and 0 deletions

View File

@@ -66,6 +66,9 @@ void ViewManager::TestGameView::think() {
if (m_cvarCommons.m_debugOverlayShowFrameCounter->toBoolean())
overlayText += fmt::format(FMT_STRING("Frame: {}\n"), g_StateManager->GetUpdateFrameIndex());
if (m_cvarCommons.m_debugOverlayShowFramerate->toBoolean())
overlayText += fmt::format(FMT_STRING("FPS: {}\n"), urde::CGraphics::GetFPS());
if (m_cvarCommons.m_debugOverlayShowInGameTime->toBoolean()) {
double igt = g_GameState->GetTotalPlayTime();
u32 ms = u64(igt * 1000) % 1000;