[Scummvm-devel] Discworld 2 memory issue

Marcus Comstedt marcus at mc.pp.se
Sat Oct 24 13:52:59 CEST 2009


yotam barnoy <yotambarnoy at gmail.com> writes:

> 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.

As long as only _one_ engine has this kind of behaviour, a workaround
should be possible:  Make sure that the tinsel plugin is loaded
_first_; then the memory will be unfragmented when the other plugins
are unloaded.

Probably not a long time solution, but it should serve as a quick fix
at least.


  // Marcus






More information about the Scummvm-devel mailing list