From 627e1bc7eee5b821d29b2161dec4991cae7bf9c0 Mon Sep 17 00:00:00 2001 From: Bjørn Lindeijer Date: Mon, 13 Apr 2009 20:25:02 +0200 Subject: Revert forced FPS limit Don't force an FPS limit when people don't want it. Just default to limit on 60 fps instead, but do allow it to be disabled. This reverts part of commit 4b7755fcae0de15951c508ec034158007c8b6cf3. --- src/game.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/game.cpp') 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; -- cgit v1.2.3-70-g09d2