projects
/
supertux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
split worldmap into several files, updates, use SDL_Delay earlier to reduce CPU usage...
[supertux.git]
/
src
/
mainloop.cpp
diff --git
a/src/mainloop.cpp
b/src/mainloop.cpp
index
523db81
..
1be0114
100644
(file)
--- a/
src/mainloop.cpp
+++ b/
src/mainloop.cpp
@@
-133,8
+133,8
@@
MainLoop::run()
/* just wait */
// If we really have to wait long, then do an imprecise SDL_Delay()
Uint32 diff = fps_nextframe_ticks - ticks;
- if(diff > 1
5
) {
- SDL_Delay(diff -
10
);
+ if(diff > 1
0
) {
+ SDL_Delay(diff -
2
);
}
ticks = SDL_GetTicks();
}