[Scummvm-devel] Memory requirements of the SmushPlayer

Lars Persson larspp at hotmail.com
Sat Jun 17 19:10:23 CEST 2006


Hi! I have struggeling to get Full Throttle working on my phone and its 
really a struggle against memory requirements. So I have a small question 
which someone of you might be able to answer.

When creating an audiostream channel within smush a constant of 500000 bytes 
is used for each smush audio channels with this line of code
_channels[i].stream = Audio::makeAppendableAudioStream(rate, flags, 500000);

Where does this constant of 500000 come from!?

Since we are supporting 16 channels, this can become up to 8mb, so lowering 
this value could really help me, if its possible.

Another problem I am seeing is that reoccuring allocations is really 
fragmenting my memory heap, making later allocations even more possible. 
Anyone thinking about trying to reuse memorypools, in like smush, if its 
likely that the same amount of memory will be used in next frame?

br Lars






More information about the Scummvm-devel mailing list