Skip to content

Commit f952bfe

Browse files
author
Niko
committed
60fps progress
1 parent 7467d1c commit f952bfe

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

decompile/General/MAIN/MainFrame_08_RenderFrame.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1847,7 +1847,16 @@ void RenderVSYNC(struct GameTracker* gGT)
18471847
// render checkered flag
18481848
if((gGT->renderFlags & 0x1000) != 0)
18491849
{
1850-
VSync(0);
1850+
#ifdef USE_60FPS
1851+
// if main menu runs at 45fps,
1852+
// do NOT cap to 30fps
1853+
if(gGT->levelID != MAIN_MENU_LEVEL)
1854+
#endif
1855+
1856+
// Wait until "next" vsync,
1857+
// Main Menu at 45fps will cap to 30fps
1858+
// Levels+RaceFlag at 25fps will cap to 20fps
1859+
VSync(0);
18511860
}
18521861

18531862

0 commit comments

Comments
 (0)