From b748b1a9ac359625c226870a79c8ff79e07690d2 Mon Sep 17 00:00:00 2001 From: SirMangler Date: Sun, 3 Jan 2021 19:04:00 +0000 Subject: [PATCH] FPSCounter cvar --- hecl/include/hecl/CVarCommons.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hecl/include/hecl/CVarCommons.hpp b/hecl/include/hecl/CVarCommons.hpp index ec57f567c..b870ece17 100644 --- a/hecl/include/hecl/CVarCommons.hpp +++ b/hecl/include/hecl/CVarCommons.hpp @@ -33,6 +33,7 @@ struct CVarCommons { CVar* m_debugOverlayWorldInfo = nullptr; CVar* m_debugOverlayAreaInfo = nullptr; CVar* m_debugOverlayShowFrameCounter = nullptr; + CVar* m_debugOverlayShowFramerate = nullptr; CVar* m_debugOverlayShowInGameTime = nullptr; CVar* m_debugOverlayShowResourceStats = nullptr; CVar* m_debugOverlayShowRandomStats = nullptr; @@ -69,6 +70,9 @@ struct CVarCommons { m_debugOverlayShowFrameCounter = m_mgr.findOrMakeCVar("debugOverlay.showFrameCounter"sv, "Displays the current frame index"sv, false, hecl::CVar::EFlags::Game | hecl::CVar::EFlags::Archive | hecl::CVar::EFlags::ReadOnly); + m_debugOverlayShowFramerate = + m_mgr.findOrMakeCVar("debugOverlay.showFramerate"sv, "Displays the current framerate"sv, false, + hecl::CVar::EFlags::Game | hecl::CVar::EFlags::Archive | hecl::CVar::EFlags::ReadOnly); m_debugOverlayShowInGameTime = m_mgr.findOrMakeCVar("debugOverlay.showInGameTime"sv, "Displays the current in game time"sv, false, hecl::CVar::EFlags::Game | hecl::CVar::EFlags::Archive | hecl::CVar::EFlags::ReadOnly);