added a delay to menu loop
authorPerttu Ahola <celeron55@gmail.com>
Sat, 21 May 2011 09:28:33 +0000 (12:28 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Sat, 21 May 2011 09:28:33 +0000 (12:28 +0300)
src/main.cpp

index 202c5e75ec70ea3465b3c8fadc9fc5dfe2e5b0fd..816d921188b061cdb541c60c72a9dd8132498c37 100644 (file)
@@ -1410,6 +1410,10 @@ int main(int argc, char *argv[])
                                        guienv->drawAll();\r
                                        \r
                                        driver->endScene();\r
+                                       \r
+                                       // On some computers framerate doesn't seem to be\r
+                                       // automatically limited\r
+                                       sleep_ms(25);\r
                                }\r
                                \r
                                // Break out of menu-game loop to shut down cleanly\r