From a8e1340c45dcad45415a9699a153881c79f78cd9 Mon Sep 17 00:00:00 2001 From: Max Horn Date: Tue, 14 Oct 2003 20:52:27 +0000 Subject: improved timer resolution -> this helps iMuse *a lot* on my system when there is load svn-id: r10804 --- common/timer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3