Jump to content
  • Advertisement
Sign in to follow this  
Eric kim

different size of file

This topic is 5407 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to make a directx9 framework and referencing a old tutorial which is directx8. I have finished font part then I found a strange thing, the tutorial's compiled file was less than 500KB but my one is 1.44MB, and I have a question that some retail game's execute file was less than 1MB, does it influence at performance or not and how can I make my execute file so small.

Share this post


Link to post
Share on other sites
Advertisement
Guest Anonymous Poster
If you can make an executable less then 100K, then you'll gain about 5 times performance. That's the way Windows works. Use small memory model with your Win32 stuff. Tine memory model is even better, but it's hard to get it compile.

Share this post


Link to post
Share on other sites
Quote:
Original post by smart_idiot
You probably have debugging information in your executable.

I concur. Try compiling a Release build. That should reduce the size by quite a bit.
Quote:

As for the Anonymous Poster, you're an idiot.

I concur.

Edit: Runtime and Release both start with R's. Close enough... ;)

[Edited by - pi_equals_3 on September 29, 2004 6:32:05 PM]

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
No, I am not an idiot. You just don't know how Windows works. What are you talking about Runtime, there is no such think in Windows.

Share this post


Link to post
Share on other sites
Also try linking to the DLL version of the standard library, this can significantly reduce exe size - it's the "Code Generation" option under "C++" in your project settings.

Share this post


Link to post
Share on other sites
Eception handling also can add some 100 kb to your exe.

As for AP: As you seem to be serious, I don't want to trample on you (AP gets hurt everytime), but only give you a hint: you are using WAY OLD stuff, your DOS knowledge is outdated, you should REALLY switch to 32 bit systems. (Like Microsoft Windows 2000, which came out 5 years ago, or the even more recent Windows XP).
Just head out to microsoft.com, they have Windows XP Home Edition for few money. Also, you could buy a new computer, because they usually have Windows preinstalled, so you dont't have to fiddle with that.

Hope that helps.

Thermo/Konfu


Share this post


Link to post
Share on other sites
Quote:
Original post by neocryptek
he means compile in release mode

-N30

Wow, thanks. I guess that's what I get for typing a post in a hurry and going to bed without reading it over.

Share this post


Link to post
Share on other sites
I've downloaded a 3d graphic demo file written by asem, it was about 100KB (I can't remember but at lease it was smaller than 1MB unlike other 3D grapihc demos ) and when I executed it, it took all system resource as much as my computer could, graphic was beautiful and fps was below 1 fps.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!