[Scummvm-devel] Discworld 2 memory issue

Max Horn max at quendi.de
Fri Oct 23 23:51:14 CEST 2009


Am 23.10.2009 um 15:55 schrieb yotam barnoy:

> The PSP testers just discovered an issue with discworld 2's memory  
> allocations:
>
> Now that the PSP has enough memory to run DW2 due to the plugin  
> system, we thought that it would be possible to run the game.  
> However, because of the way the plugins are currently implemented  
> (they're all loaded into memory, causing other small allocations to  
> be made deep into the heap), it's impossible to allocate the 10MB  
> needed by DW2 when it starts running even though those 10MB are  
> present.
>
> Is it possible to split up the allocation into smaller allocations?  
> What is the reason for having a specialized memory manager for  
> Tinsel anyway? Is that just the way the code came? Would it be  
> possible to just convert it to regular mallocs?

It would be possible to rewrite the memory manager to use multiple  
chunks, but just using malloc definitely won't work, it does extra  
things like tracking references to memory.

Feel free to look into it, though :)

Max




More information about the Scummvm-devel mailing list