Direct3D9 render system: precompiled headers

What it says on the tin: a place to discuss proposed new features.
Post Reply
Chatterbox
Kobold
Posts: 28
Joined: Tue Dec 05, 2006 9:39 pm

Direct3D9 render system: precompiled headers

Post by Chatterbox »

Is there a reason why the Direct3D9 render system plugin (Orge 1.4.9) does not use precompiled headers while OgreMain does? It speeds up compilation
User avatar
sinbad
OGRE Retired Team Member
OGRE Retired Team Member
Posts: 19269
Joined: Sun Oct 06, 2002 11:19 pm
Location: Guernsey, Channel Islands
x 66
Contact:

Post by sinbad »

Not particularly, I can't say I've noticed it taking very long in comparison to OgreMain but it's something we could do.
Chatterbox
Kobold
Posts: 28
Joined: Tue Dec 05, 2006 9:39 pm

Post by Chatterbox »

sinbad wrote:Not particularly, I can't say I've noticed it taking very long in comparison to OgreMain but it's something we could do.
Indeed, OgreMain takes very long, but the D3D rendersystem compiles in a couple of seconds once I added precompiled headers.

Regarding OgreMain, it would be nice to split this gigantic module into pieces, which might also speedup compilation, but this is another matter.

IMHO C++ isn't really good at compiling large projects. A full recompile of Axiom 3D (C#) takes a couple of second; recompiling OgreMain on the other hand :)

To speedup a recompile of OgreMain on Visual Studio 2008, I enabled the /MP setting, which uses all cores (4 on my machine). But you loose incremential compilation :(
Post Reply