mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
improved timer resolution -> this helps iMuse *a lot* on my system when there is load
svn-id: r10804
This commit is contained in:
parent
2968be7670
commit
a8e1340c45
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user