summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 7873d7db..750725db 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -456,13 +456,9 @@ static bool saveScreenshot()
void Game::optionChanged(const std::string &name)
{
- int fpsLimit = (int) config.getValue("fpslimit", 0);
+ int fpsLimit = (int) config.getValue("fpslimit", 60);
- // Calculate new minimum frame time. If one isn't set, use 60 FPS.
- // (1000 / 60 is 16.66) Since the client can go well above the refresh
- // rates for monitors now in OpenGL mode, this cutoff is done to help
- // conserve on CPU time.
- mMinFrameTime = fpsLimit ? 1000 / fpsLimit : 16;
+ mMinFrameTime = fpsLimit ? 1000 / fpsLimit : 0;
// Reset draw time to current time
mDrawTime = tick_time * 10;