summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-08-08 03:37:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-08-08 03:37:31 +0300
commit5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea (patch)
treed2700febae15532276a12f5c73ca666e7c1db0db /src
parentea2f53614e087dd4eae470611237d89898c0a1eb (diff)
downloadmanaverse-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.tar.gz
manaverse-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.tar.bz2
manaverse-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.tar.xz
manaverse-5adb2dba3bf6ca5969117b8b90b00c40e8cae0ea.zip
Change limits when enable auto adjust perfomance.
Diffstat (limited to 'src')
-rw-r--r--src/game.cpp6
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)