[Scummvm-devel] Re: Memory usage (Johannes Schickel)

Neil Millstone neil at millstone.demon.co.uk
Mon Feb 20 13:56:23 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
>  
>

Thanks a lot, I get all the memory I had and more back when I enable 
that option, so that sorts me out for RAM for the time being, at least!




More information about the Scummvm-devel mailing list