diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-08-08 03:37:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-08-08 03:37:31 +0300 |
commit | 5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea (patch) | |
tree | d2700febae15532276a12f5c73ca666e7c1db0db /src/game.cpp | |
parent | ea2f53614e087dd4eae470611237d89898c0a1eb (diff) | |
download | plus-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.tar.gz plus-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.tar.bz2 plus-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.tar.xz plus-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.zip |
Change limits when enable auto adjust perfomance.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game.cpp b/src/game.cpp index 6abc15277..9a5128f37 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -571,10 +571,10 @@ void Game::adjustPerfomance() int maxFps = config.getIntValue("fpslimit"); if (!maxFps) maxFps = 30; - else if (maxFps < 6) - maxFps = 6; + else if (maxFps < 10) + return; - if (fps < maxFps - 5) + if (fps < maxFps - 10) { mAdjustLevel ++; switch (mAdjustLevel) |