Game Development Community

TGBGame.exe size after compile

by Christian Rousselle · in Torque Game Builder · 07/28/2007 (2:38 am) · 7 replies

The size of TGBGame.exe is more than 2 MB when I compile TGB.

"Smaller Game Sizes Both TorqueGameBuilder.exe and your distributable games (TGBGame.exe) are now compressed and optimized for space on disk. With TGB 1.1.3 the executable file you had to distribute with your game was 3.27MB on a windows install. On 1.5, the distributable (TGBGame.exe) is less than 1MB."

Which additonal steps do I need to do in order to compress/create a small exe myself?

Thank you.

#1
07/28/2007 (6:43 pm)
Yep, my TGBGame.exe is also over 2MB in size. I use the MSVC 2003 compiler and codeblocks IDE. For compiler options I have exception handling, RTTI, "Optimize for Pentium", and "Maximize Speed".
#2
07/29/2007 (9:01 am)
The TGB executable is packed with the UPX packer upx.sourceforge.net
#4
07/29/2007 (7:55 pm)
Why UPX? If you use LZMA compression (which you probably should, because it has a better compression ratio than ZIP, and all the good install-makers support it ) UPX will actually add to the size of your distribution. Of course in this case it may be trivial (only a few 100 or so KB) but still unnecessary.
#5
07/30/2007 (4:33 am)
UPX does not pack the executable like ZIP and the like.

It modifies the executable, it will unpack in "realtime" not unpack an exe and start that one like ZIP, 7z and the like.

you can use both on an executable if you like.
#6
07/30/2007 (11:37 am)
I know you can use them together, but when you do that ZIP will just be a bit bigger than it needs to be.

Last I heard UPX can cause false positives with some virus scanners (It's used by virus creators to reduce EXE sizes.) It doesn't matter to me, I have the source and can rebuild the EXEs all day. I'm just wondering why GG thinks UPX is a good idea.
#7
07/30/2007 (4:25 pm)
Perhaps an automatic post-built script in their automatic building system as all 3 Torque Engines are affected by it.