Game Development Community

Compiled EXE is three times larger?

by Jackie Hayes · in Torque Game Engine · 05/29/2007 (2:09 pm) · 11 replies

I seem to be dense on this but can anyone tell me why the compiled version of TGE 1.5.2, that came with the download, is 1,185k but when I compile it with VS2005 it inflates to 3,044k. I have not added anything. Just downloaded and compiled. I have noticed this on TGEA also. It's probably something I have overlooked.

Thanks....

#1
05/29/2007 (2:11 pm)
Have you compiled a release version or debug version?

If its a debug build then it will be bigger.
#2
05/29/2007 (2:20 pm)
As noted, a debug compile is larger. The executable is also UPX'd, I believe.
#3
05/29/2007 (5:55 pm)
@Ian..It is a release build not a debug build.

@David..Hmm I have never heard of UPX. I checked out the web site and it looked pretty interesting. Do you know if that is what GG used to compress the EXE?
#4
05/29/2007 (8:09 pm)
That they did, as far as I know.
#5
05/29/2007 (8:14 pm)
I always thought because of an optimized compiler? Where I'm using V2005 Express...will always produce a larger .exe size.

[me/ slow post]
#6
05/29/2007 (8:36 pm)
David is correct. It is UPX'd [or UPX-ed?].
#7
06/01/2007 (9:37 am)
Anyone know what the real benefit of such a thing, is? I mean in this age of common 300GB drives...who cares how big the exe is? I'm just curious.
#8
06/01/2007 (9:54 am)
Lee, I've heard people say it's handy for the downloadable games market.
#9
06/01/2007 (5:26 pm)
Ah. Does it have any value in the anti-cheating department? Trainers and such?
#10
06/01/2007 (5:33 pm)
No.
It just makes the pure executable smaller.

Sure we are in the 300 GB age.
But as long as you have to pay the download traffic and as long as people won't download casuals > 20-40MB, UPX is still an important thing as it can be further compressed in the installer / RAR / 7zip file you distribute.
#11
06/03/2007 (8:07 am)
Also, remember that increased storage space doesn't mean much if all the stored data gets proportionately larger with it. This "Eh, memory is cheap now-a-days so who cares if it isn't as small as it could be" or "eh, processors are faster than they used to be so who cares if it isn't as efficient as it could be" mentality in the computer world drives me nuts! Just think, these hardware improvements mean that much more if the software continues to use as little of it as possible.