From: Perttu Ahola Date: Sat, 21 May 2011 09:28:33 +0000 (+0300) Subject: added a delay to menu loop X-Git-Tag: 0.2.20110731_3~186 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c1b164cbcb233cbe5159450b7d3b58474871752b;p=oweals%2Fminetest.git added a delay to menu loop --- 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