From 7f2aa148cc78bd6dd9abe2c710c293c0c4140b6f Mon Sep 17 00:00:00 2001 From: Sonic Dreamcaster Date: Tue, 28 May 2024 02:07:15 -0300 Subject: [PATCH] gVIsPerFrame fix for Aquas --- src/port/Engine.cpp | 2 +- src/sys/sys_main.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/port/Engine.cpp b/src/port/Engine.cpp index a27d586b..5669c4e0 100644 --- a/src/port/Engine.cpp +++ b/src/port/Engine.cpp @@ -134,7 +134,7 @@ void GameEngine::ProcessGfxCommands(Gfx* commands) { gFPS = 30; wnd->SetRendererUCode(UcodeHandlers::ucode_f3dex); - wnd->SetTargetFps(30); + wnd->SetTargetFps(60 / gVIsPerFrame); wnd->SetMaximumFrameLatency(1); RunCommands(commands); diff --git a/src/sys/sys_main.c b/src/sys/sys_main.c index 9522f421..d8d00476 100644 --- a/src/sys/sys_main.c +++ b/src/sys/sys_main.c @@ -80,7 +80,7 @@ u8 gSerialThreadStack[0x1000]; // 800E0FB0 void Main_Initialize(void) { u8 i; - gVIsPerFrame = 0; + gVIsPerFrame = 2; gSysFrameCount = 0; gStartNMI = false; gStopTasks = false;