From c1b164cbcb233cbe5159450b7d3b58474871752b Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 21 May 2011 12:28:33 +0300 Subject: added a delay to menu loop --- src/main.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/main.cpp') 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 -- cgit v1.2.3