Game Development Community

cutting down the engine

by Mike Moore · in iTorque 2D · 07/13/2009 (9:58 am) · 4 replies

Hi,

I´m wondering how to reduce the engine before port to the iPhone. I´m talking about get rid of all those functions/capabilities are not being used by the game. Is this possible? And most important: will this action help to use less device memory?

Thanks

mike

#1
07/13/2009 (10:49 am)
It will reduce the PE footprint but that is actually the smallest part. Sound and textures make the memory, not the app code.

To cut it down you must restructure and write parts of the engine depending on what you remove. Only few things can just be linked out without making the whole engine unusable.
#2
07/13/2009 (10:56 am)
Thanks Marc,

So I will check sounds and textures instead of mess around with the engine.

Mike
#3
07/16/2009 (11:13 am)
You can also eliminate things you may not be using, like GUI controls, 3d functionality. But as Marc said, it doesn't reduce the size of things that much.
#4
07/16/2009 (12:16 pm)
If you're looking to reduce the size of your game, take a look at your fonts. For some reason, one of my fonts became super bloated and it doubled the size of my game pre-art and sound assets. (The font was taking up 6.5meg...)

Removing the networking components and other things that you don't need will only reduce your load time, realistically. (You can save about 500kb to 1mg chopping off useless stuff but it takes some effort).