[Scummvm-cvs-logs] CVS: scummvm/sword2/driver render.cpp,1.50,1.51

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Tue Jan 13 02:28:03 CET 2004


Update of /cvsroot/scummvm/scummvm/sword2/driver
In directory sc8-pr-cvs1:/tmp/cvs-serv30573

Modified Files:
	render.cpp 
Log Message:
As an experiment, I've added a delay of 0 milliseconds when drawing
interpolation frames. It shouldn't delay anything, but I'm hoping it will
allow the other threads some breathing room, which might help bug #875683.

Or not. We'll see.


Index: render.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword2/driver/render.cpp,v
retrieving revision 1.50
retrieving revision 1.51
diff -u -d -r1.50 -r1.51
--- render.cpp	12 Jan 2004 19:08:04 -0000	1.50
+++ render.cpp	13 Jan 2004 10:27:13 -0000	1.51
@@ -660,6 +660,11 @@
 	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);
+
 	return false;
 }
 





More information about the Scummvm-git-logs mailing list