Speeding up compile time
by Marcelo Oliveira · in Torque Game Engine · 07/08/2004 (7:33 am) · 0 replies
Here's a hint I've found:
By disabling use of any precompiled header at torque you can speed up the compile time, here's my benchmarks (average values):
TGE VS6 - Full Rebuild
With automatic precompiled - 4:20
Without precompiled - 3:00
TSE VS7 - Full Rebuild
With automatic precompiled - 5:30
With manual precompiled - 4:00
Without precompiled - 4:07
To disable precompiled headers, go to your project setting, in the "C/C++ > Precompiled Headers" session choose "Not using precompiled headers".
To enable build time metrics:
- In VC6, run the dev enviroment with the parameter "/y3", example:
"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE" /y3
-In VC7 go to Tools > Options > Projects > VC++ Build and enable Build Timing
The fact is that torque is already well organized, I've done some tests doing manual setup of the precompiled headers, but the speed improvement was minimal...and the automatic precompiling is less efficient than no precompiling at all.
If everybody agrees that this is the best approach, I think it should be put in HEAD.
By disabling use of any precompiled header at torque you can speed up the compile time, here's my benchmarks (average values):
TGE VS6 - Full Rebuild
With automatic precompiled - 4:20
Without precompiled - 3:00
TSE VS7 - Full Rebuild
With automatic precompiled - 5:30
With manual precompiled - 4:00
Without precompiled - 4:07
To disable precompiled headers, go to your project setting, in the "C/C++ > Precompiled Headers" session choose "Not using precompiled headers".
To enable build time metrics:
- In VC6, run the dev enviroment with the parameter "/y3", example:
"C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin\MSDEV.EXE" /y3
-In VC7 go to Tools > Options > Projects > VC++ Build and enable Build Timing
The fact is that torque is already well organized, I've done some tests doing manual setup of the precompiled headers, but the speed improvement was minimal...and the automatic precompiling is less efficient than no precompiling at all.
If everybody agrees that this is the best approach, I think it should be put in HEAD.
About the author