[Scummvm-devel] Memory consumption in GUI branch
Johannes Schickel
lordhoto at gmail.com
Mon Oct 27 20:31:23 CET 2008
On Monday 27 October 2008 04:10:09 Johannes Schickel wrote:
> On Saturday 18 October 2008 16:31:14 Vicent Marti wrote:
> > I've just prepared a patch with some simple preprocessor voodoo to
> > switch between a minimal vector renderer and the standard vector
> > renderer at compile time.
>
> Actually your patch still seems to keep code for the AA renderer. I guess
> we should be able to completly remove that one?
>
> Apart I don't think that macro define hackery will be needed. Just keep
> the template and be sure you only instantiate a single type of it.
I made up some simply patch (basically it should be the same as Tanoku's, it
only additionally disables the AA renderer), which works without the
preprocessor hackery, it also uses the old 'DISABLE_FANCY_THEMES' define to
remove unneeded functionallity from the vector renderer code.
>
> I hope then the binary size for NDS should be small enough again.
Built without DISABLE_FANCY_THEMES defined:
-rw-r--r-- 1 1000 1000 64456 2008-10-27 20:11 graphics/VectorRenderer.o
-rw-r--r-- 1 1000 1000 188640 2008-10-27 20:11 graphics/VectorRendererSpec.o
-rwxr-xr-x 1 1000 1000 2035928 2008-10-27 20:11 scummvm
Built with DISABLE_FANCY_TEHEMES defined:
-rw-r--r-- 1 1000 1000 61264 2008-10-27 20:17 graphics/VectorRenderer.o
-rw-r--r-- 1 1000 1000 157744 2008-10-27 20:17 graphics/VectorRendererSpec.o
-rwxr-xr-x 1 1000 1000 2023064 2008-10-27 20:17 scummvm
Note: both are stripped debug builds.
Which is at least on my Linux/amd64 system a size difference of 12864 bytes.
I'm not sure how much size difference that makes on ARM though.
// Johannes
-------------- next part --------------
A non-text attachment was scrubbed...
Name: theme_strip_v1.patch
Type: text/x-diff
Size: 6079 bytes
Desc: not available
URL: <http://lists.scummvm.org/pipermail/scummvm-devel/attachments/20081027/9a85ece9/attachment.patch>
More information about the Scummvm-devel
mailing list