[Scummvm-cvs-logs] CVS: scummvm/saga saga.cpp,1.145,1.146

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Fri Oct 14 08:17:17 CEST 2005


Update of /cvsroot/scummvm/scummvm/saga
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26227

Modified Files:
	saga.cpp 
Log Message:
Turned on the automatic computation of dirty rects for ITE. It should make
it less of a CPU hog for 0.8.0, but I hope we'll be able to fix it properly
for later versions.


Index: saga.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/saga/saga.cpp,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -d -r1.145 -r1.146
--- saga.cpp	14 Oct 2005 04:28:20 -0000	1.145
+++ saga.cpp	14 Oct 2005 15:15:52 -0000	1.146
@@ -269,6 +269,13 @@
 
 	_gfx->initPalette();
 
+	// FIXME: This is the ugly way of reducing redraw overhead. It works
+	//        well for 320x200 but it's unclear how well it will work for
+	//        640x480.
+
+	if (getGameType() == GType_ITE)
+		_system->setFeatureState(OSystem::kFeatureAutoComputeDirtyRects, true);
+
 	return SUCCESS;
 }
 





More information about the Scummvm-git-logs mailing list