diff options
| author | KiritoDv <kiritodev01@gmail.com> | 2025-05-15 22:43:52 -0600 |
|---|---|---|
| committer | KiritoDv <kiritodev01@gmail.com> | 2025-05-15 22:43:52 -0600 |
| commit | d155bacadb38b1ed96065da2ad7de4f65f687e96 (patch) | |
| tree | efeed3c5ff7496b9afeb36a2b82da51464af8920 | |
| parent | 8c81c2b141bdb38eb4fa20906df25bb060f7bd53 (diff) | |
Fixed slow fps
| -rw-r--r-- | src/main.c | 2 | ||||
| -rw-r--r-- | src/port/Engine.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
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 |
