RE: [GD-General] Compile times
Brought to you by:
vexxed72
|
From: Douglas C. <zi...@ho...> - 2002-12-10 00:02:08
|
>Okay, Quake 2 is open sourced, so I just tested it out. On my very >modest 2xP3/933 w/ 512MB RAM using MSVC 6, compiling ref_gl, game, and >client, it took 37 seconds. > >Let me repeat: 37 seconds. Since we just spent 1/2 a day playing with VC6 PCH setups and testing compile speeds I'll throw ours in. (P4 2.8 / 512mb ) Game: C++, no templates, Core/Math/Engine/Game dlls: 1:05 in release. Editor: WTL (template heavy ATL like implementations of interface classes, no STL though). Exe & 3 plugin DLLs: 1:25 MaxExporter: STL heavy (plus numerous Max headers): 15secs So full release rebuild was 2:45. From using C in the previous game, I can definitely tell a hit in compile times with C++ even without templates, but there is no way I'd trade 20s for C.. :) I do think our WTL based editor compiles faster than the previous MFC one. As far as some way to make STL/template builds faster, 512mb of ram and PCHs are about it -- which is one reason why the game code has none. We never re-allocate memory after things are initially loaded, so I guess STL (at least containers) wouldn't have been much use anyway. -doug _________________________________________________________________ The new MSN 8: smart spam protection and 2 months FREE* http://join.msn.com/?page=features/junkmail |