mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-05-31 13:32:55 +00:00
mrrrp (V-Sync Changes)
This commit is contained in:
parent
5baab016fa
commit
0f605b8997
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue