[Scummvm-devel] Memory usage

Johannes Schickel lordhoto at gmail.com
Sat Feb 18 19:20:00 CET 2006


> As you can see, the free RAM in the launcher stays relatively stable,
> but once I'm in the game, there's quite a bit less available.  With the
> most recent build, Sam & Max crashes when it runs out of memory, while
> it's fine in the 26th Jan build.  Is there any chance that the GUI
> memory usage could go down?  Or perhaps there could be a low memory flag
> which makes the gui keep less buffers around, or perhaps free some of
> it's RAM while the game is running.
>

You could just use the old gui. See gui/newgui.cpp (look at
DISABLE_FANCY_THEMES, which doesn't exclude the new gui theme code
though). Disabling buffers would slow down it too much (it's even too
slow on eriks p3 450 then), also the only buffer the gui uses is a
separate screen buffer (and a surface of the current screen) that
should be: w*h*sizeof(uint16). The special screen buffer is also not
allocated while there is no gui open.

- Johannes




More information about the Scummvm-devel mailing list