Optimizing DLLs
Jump to navigation
Jump to search
The default release mod that comes with the source SDK Visual Studios Projects is all right for many mods, but it can be better, and run faster with some small changes. In the project properties page of your client and server, add these additional commands to get a faster game DLL.
General
- Whole Program Optimization 'yes'
C/C++ add these two switches to the 'command line'
- /GL /G7
Link add these three switches to the 'command line'
- /OPT:ICF /OPT:WIN98 /LTCG
It will take a while for it to run the link, but the code will run faster then with the default release mode.

You can also enable SSE optimizations due to the minium requirements of HL2 being a 1.2 GHz CPU, that defaults to a Pentium 4, or AMD Athlon that support this technology.