summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorIra Rice <irarice@gmail.com>2009-03-19 23:05:20 -0600
committerIra Rice <irarice@gmail.com>2009-03-19 23:05:20 -0600
commit4b7755fcae0de15951c508ec034158007c8b6cf3 (patch)
treedf9cddb1231fc0812ac1d3910ab98762f554fbf3 /src/main.cpp
parentc2c0a9fa8476b9335a6198b41cc702da82fd40bd (diff)
downloadmana-client-4b7755fcae0de15951c508ec034158007c8b6cf3.tar.gz
mana-client-4b7755fcae0de15951c508ec034158007c8b6cf3.tar.bz2
mana-client-4b7755fcae0de15951c508ec034158007c8b6cf3.tar.xz
mana-client-4b7755fcae0de15951c508ec034158007c8b6cf3.zip
Throttle framerates down to save CPU cycles. Now that we're getting high
framerates in OpenGL even on older hardware, this should be done to conserve on CPU usage, rather than stressing it with more frames than the monitor can render. Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 7ee2f6b4..a04c8696 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1101,9 +1101,9 @@ int main(int argc, char *argv[])
/*
* This loop can really stress the CPU, for no reason since it's
* just constantly redrawing the wallpaper. Added the following
- * usleep to limit it to 20 FPS during the login sequence
+ * usleep to limit it to 40 FPS during the login sequence
*/
- usleep(50000);
+ usleep(25000);
}
delete guiPalette;