aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-10-14 20:52:27 +0000
committerMax Horn2003-10-14 20:52:27 +0000
commita8e1340c45dcad45415a9699a153881c79f78cd9 (patch)
tree9174e8b82a451be2854a8ba570cd0780beb660b1
parent2968be7670c0cf5a57f53fafd3164a199f10e705 (diff)
downloadscummvm-rg350-a8e1340c45dcad45415a9699a153881c79f78cd9.tar.gz
scummvm-rg350-a8e1340c45dcad45415a9699a153881c79f78cd9.tar.bz2
scummvm-rg350-a8e1340c45dcad45415a9699a153881c79f78cd9.zip
improved timer resolution -> this helps iMuse *a lot* on my system when there is load
svn-id: r10804
-rw-r--r--common/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/timer.cpp b/common/timer.cpp
index c6a139bd54..f7d7151c4f 100644
--- a/common/timer.cpp
+++ b/common/timer.cpp
@@ -91,7 +91,7 @@ int Timer::handler(int t) {
for (l = 0; l < MAX_TIMERS; l++) {
if ((_timerSlots[l].procedure) && (_timerSlots[l].interval > 0)) {
_timerSlots[l].counter -= interval;
- if (_timerSlots[l].counter <= 0) {
+ while (_timerSlots[l].counter <= 0) {
_timerSlots[l].counter += _timerSlots[l].interval;
_timerSlots[l].procedure(_timerSlots[l].refCon);
}