[Scummvm-devel] Pre 0.4.0 concerns

Marcus Comstedt marcus at mc.pp.se
Sun Apr 27 14:26:04 CEST 2003


Marcus Comstedt <marcus at mc.pp.se> writes:

> 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


Ok, Max commited this so I suppose it was considered the right thing
to do.  Unfortunately, it seems 900000 isn't enough either.  A little
further into the game, this limit is exceeded too.  Standing inside
the wrecked spaceship on the alien world, there is a total of 1149852
bytes on unexpirable resources.  I did a breakdown by resource type
(only types considered by expireResouces included):

Type 1: 63033 bytes 
Type 2: 4709 bytes 
Type 3: 739800 bytes 
Type 4: 112658 bytes 
Type 6: 0 bytes 
Type 17: 0 bytes 

There seems to be an awful lot of costume data (type 3).  Is this
really normal?  If it is, I suppose the only thing we can do is
increase _maxHeapThreshold even further.  If it isn't, maybe there is
some bug which is causing the heap overloading rather than bad tuning?

(Btw, I got these figures when restoring from a savegame directly
 after starting ScummVM, so it's not like they are accumulating over
 time or anything.)


  // Marcus






More information about the Scummvm-devel mailing list