From: Perttu Ahola Date: Sat, 21 May 2011 09:28:33 +0000 (+0300) Subject: added a delay to menu loop X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=c1b164cbcb233cbe5159450b7d3b58474871752b;p=zefram%2Fminetest%2Fminetest_engine.git added a delay to menu loop --- diff --git a/src/main.cpp b/src/main.cpp index 202c5e75..816d9211 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