From ed5645fdab9fff6ace05675fe0d98a6c2273f1e4 Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Wed, 27 Nov 2024 04:36:13 -0300 Subject: [PATCH] MODS_FPS_COUNTER: we don't need this anymore --- include/mods.h | 2 +- src/port/Engine.cpp | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/mods.h b/include/mods.h index d24794ff..f7d2aeb7 100644 --- a/include/mods.h +++ b/include/mods.h @@ -47,7 +47,7 @@ * FPS Counter: * Press L to toggle FPS Display */ -#define MODS_FPS_COUNTER 1 +#define MODS_FPS_COUNTER 0 /** * RAM modifier: diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index e514a5f3..47ae579f 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -51,7 +51,6 @@ namespace fs = std::filesystem; #include extern "C" { -extern uint16_t gFPS; float gInterpolationStep = 0.0f; #include #include @@ -320,7 +319,6 @@ void GameEngine::ProcessGfxCommands(Gfx* commands) { return; } - gFPS = 30; wnd->EnableSRGBMode(); wnd->SetRendererUCode(UcodeHandlers::ucode_f3dex); @@ -330,7 +328,7 @@ void GameEngine::ProcessGfxCommands(Gfx* commands) { static int last_update_rate; static int time; int fps = target_fps; - int original_fps = gFPS = 60 / gVIsPerFrame; + int original_fps = 60 / gVIsPerFrame; if (target_fps == 20 || original_fps > target_fps) { fps = original_fps;