projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe02a19
)
added a delay to menu loop
author
Perttu Ahola
<celeron55@gmail.com>
Sat, 21 May 2011 09:28:33 +0000
(12:28 +0300)
committer
Perttu Ahola
<celeron55@gmail.com>
Sat, 21 May 2011 09:28:33 +0000
(12:28 +0300)
src/main.cpp
patch
|
blob
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index 202c5e75ec70ea3465b3c8fadc9fc5dfe2e5b0fd..816d921188b061cdb541c60c72a9dd8132498c37 100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-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