Direct3D9 render system: precompiled headers
-
- Kobold
- Posts: 28
- Joined: Tue Dec 05, 2006 9:39 pm
Direct3D9 render system: precompiled headers
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
- sinbad
- OGRE Retired Team Member
- Posts: 19269
- Joined: Sun Oct 06, 2002 11:19 pm
- Location: Guernsey, Channel Islands
- x 66
- Contact:
-
- Kobold
- Posts: 28
- Joined: Tue Dec 05, 2006 9:39 pm
Indeed, OgreMain takes very long, but the D3D rendersystem compiles in a couple of seconds once I added precompiled headers.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.
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