mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-12-10 07:07:42 +00:00
FPS Counter and debug overlay CVAR
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include <array>
|
||||
#include <vector>
|
||||
#include <chrono>
|
||||
|
||||
#include "Runtime/RetroTypes.hpp"
|
||||
|
||||
@@ -18,6 +19,8 @@
|
||||
#include <zeus/CVector2i.hpp>
|
||||
#include <zeus/CVector2f.hpp>
|
||||
|
||||
using frame_clock = std::chrono::high_resolution_clock;
|
||||
|
||||
namespace urde {
|
||||
extern hecl::CVar* g_disableLighting;
|
||||
class CLight;
|
||||
@@ -309,7 +312,12 @@ public:
|
||||
static float GetSecondsMod900();
|
||||
static void TickRenderTimings();
|
||||
static u32 g_FrameCounter;
|
||||
static u32 g_Framerate;
|
||||
static u32 g_FramesPast;
|
||||
static frame_clock::time_point g_FrameStartTime;
|
||||
static u32 GetFrameCounter() { return g_FrameCounter; }
|
||||
static u32 GetFPS() { return g_Framerate; }
|
||||
static void UpdateFPSCounter();
|
||||
|
||||
static boo::IGraphicsDataFactory::Platform g_BooPlatform;
|
||||
static const boo::SystemChar* g_BooPlatformName;
|
||||
|
||||
Reference in New Issue
Block a user