   D3DX , DXUT - executable size
  I'm curious what you know about how much using DXUT or D3DX increases the size of your project when it's time for you to release it.Here's what I think I know:Using at least one D3DX function will require me to link to a DLL. So I've gained that much more size.Using DXUT - I'm not sure what that includes, and how much that bloats the EXE.Thanks!   
  I've actually kind of looked at and enumerated my options as far as D3DX is concerned:1) Include the big 2+ MB D3DX DLL in the release 2) Use an older SDK (before they made D3DX a DLL). Static linking only what I need should save space.3) Don't use D3DX (not too plausible...).4) Release a modified installer that downloads the correct DLL from Microsoft (didn't somebody on this forum do that?). I know about the installer that's DLL-only. But what about just an installer?Anyhow: Any thoughts about DXUT? Since it's just code, I don't have to worry about an unnecessarily-large DLL (I don't think). But any idea how much size all of the common DXUT code compiles into, compared to non-DXUT-compiled D3D code?Thanks.   ;  You are not allowed to build a modified installer.  But there is an web installer from Microsoft: http://www.microsoft.com/downloads/details.aspx?FamilyId=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3&displaylang=enDXUT should be in the range of 400 to 450 KB.  IIRC this is mainly a result of texture data for the UI system.;Quote:Original post by DemirugYou are not allowed to build a modified installer.  But there is an web installer from Microsoft: http://www.microsoft.com/downloads/details.aspx?FamilyId=2DA43D38-DB71-4C1B-BC6A-9B6652CD92A3&displaylang=enDXUT should be in the range of 400 to 450 KB.  IIRC this is mainly a result of texture data for the UI system.Does that web installer let you install a D3DX DLL only?And for DXUT: what if I don't call any of the UI functions, except basic window initialization. Won't that DXUT code not be compiled in?EDIT: Nevermind about DXUT, I just realized the framework won't work for me. But I'm still curious about D3DX options.;  The web installer will download and install any D3DX version that is not already on the system. What’s your main reason to reduce the size of the download? Do you have to save bandwidth on your side or do your primary users have only small connections to the internet?;  If you compress to a .msi, then the installer for D3DX adds about 1.5 MB. You are not allowed to ship the D3DX DLL without the accompanying installer, so going the MSI route is the best way, really. I add the D3DX install directory as an installable in my MSI, then call out to the installer with /silent as a post-install action.;Quote:Original post by DemirugThe web installer will download and install any D3DX version that is not already on the system.Ok! Quote:Original post by DemirugWhat’s your main reason to reduce the size of the download? Do you have to save bandwidth on your side or do your primary users have only small connections to the internet?Primary users.And thanks hplus0603. But if what Demirug says is true, it seems that might be the way to go... how would I tell the web installer that my project needs, say, the "_28" version of the D3DX DLL? ;Quote:Original post by discman1028how would I tell the web installer that my project needs, say, the "_28" version of the D3DX DLL?You don't. It'll check the system and install any and every D3DX DLL that the system doesn't already have. If you need none, it'll install none [smile]Also, you need to go through WGA authentication before you can get at the download. I doubt there's an automated way of doing this, so you're going to have to get the user involved rather than have your program try some behind-the-scenes magic...hthJack   