[Scummvm-devel] Pre 0.4.0 concerns

Marcus Comstedt marcus at mc.pp.se
Sun Apr 6 14:14:01 CEST 2003


Before 0.4.0 is released, I'd like to ask that the _maxHeapThreshold
is increased to at least twice its current value, that is

Index: scummvm.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/scummvm.cpp,v
retrieving revision 2.67
diff -u -r2.67 scummvm.cpp
--- scummvm.cpp 29 Mar 2003 20:48:57 -0000      2.67
+++ scummvm.cpp 6 Apr 2003 21:03:38 -0000
@@ -1672,7 +1672,7 @@
 void Scumm::launch() {
        gdi._vm = this;
 
-       _maxHeapThreshold = 450000;
+       _maxHeapThreshold = 900000;
        _minHeapThreshold = 400000;
 
        _verbRedraw = false;


The reason being (as I believe I have mentioned breifly before) is
that when playing The Dig, 450000 bytes is not sufficient to hold the
resources for a single scene.  The result is that resources gets
constantly expired and read back from disc.  This becomes
particularly bad on the Dreamcast, since the game is always played
from CD.  As there is background music being streamed from a different
place on the CD, the resource reading will always trigger a seek
across the CD surface, resulting in both noticable lag and unneccesary
wear on the CD drive.

I'm not sure how the current value of _maxHeapThreshold was
determined, but I suspect it was intended for earlier games which were
less resource intensive.


Btw, is someone else experiencing problems with the inventory in The
Dig (instead of the normal contents I get two "pigs" and nothing else)
or is it just my gcc installation that is acting up again?


  // Marcus






More information about the Scummvm-devel mailing list