From d155bacadb38b1ed96065da2ad7de4f65f687e96 Mon Sep 17 00:00:00 2001 From: KiritoDv Date: Thu, 15 May 2025 22:43:52 -0600 Subject: [PATCH] Fixed slow fps --- src/main.c | 2 +- src/port/Engine.cpp | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 7b7e05cda..39eb51d84 100644 --- a/src/main.c +++ b/src/main.c @@ -647,7 +647,7 @@ void calculate_updaterate(void) { s32 total; // Get target FPS from configuration variable - s32 targetFPS = CVarGetInteger("gInterpolationFPS", 30); + s32 targetFPS = 30; if (targetFPS < 60) { targetFPS = 30; diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index debfad703..58e3920ea 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -388,6 +388,9 @@ void GameEngine::ProcessGfxCommands(Gfx* commands) { wnd->SetMaximumFrameLatency(1); } RunCommands(commands, mtx_replacements); + + last_fps = fps; + last_update_rate = 2; } // Audio