[Scummvm-cvs-logs] CVS: scummvm/common timer.cpp,1.18,1.19
Max Horn
fingolfin at users.sourceforge.net
Tue Oct 14 13:53:07 CEST 2003
Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1:/tmp/cvs-serv26828/common
Modified Files:
timer.cpp
Log Message:
improved timer resolution -> this helps iMuse *a lot* on my system when there is load
Index: timer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/timer.cpp,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- timer.cpp 4 Oct 2003 11:50:20 -0000 1.18
+++ timer.cpp 14 Oct 2003 20:52:27 -0000 1.19
@@ -91,7 +91,7 @@
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);
}
More information about the Scummvm-git-logs
mailing list