[Scummvm-cvs-logs] CVS: scummvm/scumm scummvm.cpp,2.113,2.114

Max Horn fingolfin at users.sourceforge.net
Wed Apr 30 03:29:11 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv10878

Modified Files:
	scummvm.cpp 
Log Message:
changed _maxHeapThreshold again (is that better, Marcus? feel free to tweak it yourself)

Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.113
retrieving revision 2.114
diff -u -d -r2.113 -r2.114
--- scummvm.cpp	30 Apr 2003 05:48:55 -0000	2.113
+++ scummvm.cpp	30 Apr 2003 10:28:00 -0000	2.114
@@ -1812,7 +1812,12 @@
 void Scumm::launch() {
 	gdi._vm = this;
 
-	_maxHeapThreshold = 900000;
+	// Since the new costumes are very big, we increase the heap limit, to avoid having
+	// to constantly reload stuff from the data files.
+	if (_features & GF_NEW_COSTUMES)
+		_maxHeapThreshold = 1500000;
+	else
+		_maxHeapThreshold = 450000;
 	_minHeapThreshold = 400000;
 
 	_verbRedraw = false;





More information about the Scummvm-git-logs mailing list