Page 1 of 1

Why my compiles irrlicht.dll is biger???

Posted: Fri Apr 22, 2005 9:56 pm
by katoun
Hi,
I have compiled irrlicht0.9 myself with Visual C++ 2003 and my irrlicht.dll is 2.5MB where the one from the SDK is only 1.3MB .
An other problem all the examples compiled with the new dll work half slower.
How could I solv that problem?
Help please.

Posted: Fri Apr 22, 2005 10:47 pm
by Chris
Your not by any chance compiling in bebug mode, if so change it to release. Although I'm not sure how to go about that using VC++2003.

If it's not that then I can't think of anything, well not off the top of my head.

Posted: Sat Apr 23, 2005 4:35 am
by afecelis
The size of your dll depends on 3 things:

1.If you're compiling on debug or release mode (like Chris said)
2.Which code optimizations you're using. There are optimizations specific for filesize or perhaps you're including optimizations you might not need making your dll (and exes) bigger
3. How much modified your Irrlicht version is. The heavier the mods, the heavier the dll. Try compiling original Irrlicht in release mode and compare it to your modded version.

Posted: Sat Apr 23, 2005 8:44 am
by katoun
10X for your information, but :cry: how do I compile in release mode in VC++ 2003?

Posted: Sat Apr 23, 2005 10:14 am
by bal
Build -> Configuration Manager -> Change the combobox to Release instead of Debug.

Posted: Sat Apr 23, 2005 11:34 am
by katoun
10X all for your help.
I looked for the option and foud it.
It works great now.
:lol: I workin in VC++ for over 2 years and I didn't now that. It's killing me...
Anyway 10X angain.