[Scummvm-cvs-logs] CVS: scummvm/sword2/driver render.cpp,1.52,1.53
Torbj?rn Andersson
eriktorbjorn at users.sourceforge.net
Wed Jan 14 02:59:00 CET 2004
Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1:/tmp/cvs-serv2225
Modified Files:
render.cpp
Log Message:
Increased the delay I added to interpolation frames from 0 to 10. This will
probably make the scrolling less smooth (I don't yet know how much), but it
does seem to fix bug #875683.
Index: render.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/render.cpp,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -d -r1.52 -r1.53
--- render.cpp 13 Jan 2004 14:22:29 -0000 1.52
+++ render.cpp 14 Jan 2004 10:58:09 -0000 1.53
@@ -661,10 +661,12 @@
if (_scrollX != _scrollXOld || _scrollY != _scrollYOld)
setNeedFullRedraw();
- // This shouldn't delay anything, but might possibly allow the
- // backend to give the other threads some breathing space, which could
- // conceivably help against bug #875683.
- _vm->_system->delay_msecs(0);
+#ifdef LIMIT_FRAME_RATE
+ // Give the other threads some breathing space. This apparently helps
+ // against bug #875683, though I was never able to reproduce it for
+ // myself.
+ _vm->_system->delay_msecs(10);
+#endif
return false;
}
More information about the Scummvm-git-logs
mailing list