aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-21 12:28:33 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-21 12:28:33 +0300
commitc1b164cbcb233cbe5159450b7d3b58474871752b (patch)
tree030c1bcbc5d7df6ad2f63531c798366e6bb90a7f
parentfe02a19f1795429c110e6c7ed76d333cb42a3072 (diff)
downloadminetest-c1b164cbcb233cbe5159450b7d3b58474871752b.tar.gz
minetest-c1b164cbcb233cbe5159450b7d3b58474871752b.tar.bz2
minetest-c1b164cbcb233cbe5159450b7d3b58474871752b.zip
added a delay to menu loop
-rw-r--r--src/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 202c5e75e..816d92118 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -1410,6 +1410,10 @@ int main(int argc, char *argv[])
guienv->drawAll();
driver->endScene();
+
+ // On some computers framerate doesn't seem to be
+ // automatically limited
+ sleep_ms(25);
}
// Break out of menu-game loop to shut down cleanly