mrrrp (V-Sync Changes)

This commit is contained in:
Emily 2026-03-11 00:09:07 -04:00
parent 5baab016fa
commit 0f605b8997
2 changed files with 9 additions and 1 deletions

View file

@ -116,7 +116,13 @@ void Options::init()
bobView = true;
anaglyph3d = false;
advancedOpengl = false;
//4JCRAFT V-Sync / VSync
#ifdef ENABLE_VSYNC
framerateLimit = 2;
#else
framerateLimit = 3;
#endif
fancyGraphics = true;
ambientOcclusion = true;
renderClouds = true;
@ -522,4 +528,4 @@ void Options::save()
bool Options::isCloudsOn()
{
return viewDistance < 2 && renderClouds;
}
}

View file

@ -2189,6 +2189,8 @@ int GameRenderer::getFpsCap(int option)
int maxFps = 200;
if (option == 1) maxFps = 120;
if (option == 2) maxFps = 35;
if (option == 3) maxFps = 0;
return maxFps;
}