The FPS Commands of Counter-Strike Source

Person A: Hi, my FPS in Source suck, what can i do?

Person B: Hey, this is easy: AA Off, AF Off, Vsync Off and all settings in Video Options menu to low. Do this and your FPS will skyrocket, because it's l33t and the Pro's use it too.

Does this sound familiar to you? Yes? No wonder, because this is probably the main topic in every Counter-Strike Source related Forum. Makes sense, because if you set everything to low and disable everything that could add some beauty to your beloved game, your FPS must become Pro. Of course the game will look like shit, but it's a worthy sacrifice in order to squeeze out every single frame, right?!

But what would you say if i tell you, that this is minimum 50% of the time utterly bullshit!?! What if you could maintain a good FPS and have at the same time a good looking Counter-Strike Source?

Before we come to the interesting Part let me clear up one thing: if you have a crap PC your FPS will stay low no matter what you do. However, those with a decent PC can expect a nice improvement FPS-wise and still have a nicely looking CS:S.
Below is a list of commands that affect the FPS and the optic of Counter-Strike Source. Those are by far not all commands that affect the graphics, but the most important. I try to explain what the commands do -if necessary- and which setting i recommend. Some of the more important commands also have screenshots that show you ultimately what the setting does ingame. If i tell you that mipmap and picmip alter the appearance of the Textures, then you have most likely no clue what i talk about. But if i show you some screenshots you can see it on your own and understand what it does - at least i hope you do. ^^


Note: All the following recommendations are based on my own system (specs below). If you have a different setup -which is more than likely- then you have to test and test more to find the tweaks and settings that works best for you!
I am by no means liable if you screw up your Counter-Strike Source or your whole PC! You use everything on this site on your own risk!


My Computer Specifications are as follows: (as of July 2007)

Like you can see is my PC pretty much the mainstream shit and far from superior. Especially the low cost Board and the vid card is something some of you may laugh about. The vid card is good enough to play games like CS:S on high settings and the Board was necessary, because this was the only one available that offered an AGP Slot and IDE.

Ok let's go.
The Commands are grouped by sections for a better overview. Screenshots -if available- open in a new window. Let the screenshots load fully, which can take a second or two. Make sure to enable JavaScript, because the screenshots work with MouseOver that you can better see the difference between the settings. On the screenshots is usually Net_Graph 3 visible that you can see the FPS difference between certain settings.

Note: FPS fluctuation on the Screenshots in the range of +2 to -2 FPS are absolutely normal. Also some Screenshots show lower FPS than previous Screenshots. The reason for this is, that i had to restart CS:S multiple times and the more you do this the lower the FPS get over time.

In order to test/use the commands it is recommended that you place the commands in your autoexec.cfg in your cfg directory. If there is no autoexec.cfg yet, simply create one. Note: Make sure the file is really named autoexec.cfg and not autoexec.cfg.txt - this is a very common mistake and afterwards people wonder why the commands have no effect. Here is an example path to your cfg directory:
C:\Program Files\Valve\Steam\Steamapps\YourAccountName\Counter-Strike Source\cstrike\cfg\

Important: Before you set up your own FPS config make sure and double sure that the commands you use are legal in the league you play. My recommendations are based on FPS gain while maintain a good looking CS:S and not if commands are legal in leagues! My recommendations also don't aim to reach the maximum possible FPS, but get more FPS and have a good looking game. For example, between the default quality settings and my own quality settings am i able (on my system) to gain, depending on which map i am, between 25 and 40 FPS while the map looks similar good.

Command Overview

CPU Commands

The CPU commands is the smallest group and there is not much to say. Make sure to set all CPU settings to 1 for best performance.

Command Overview

Global Graphic Settings

These commands affect everything and are responsible for the over all look. The biggest FPS killer hides here as well!

Command Overview

Textures and Surfaces

 

Command Overview

Light, Shadow and Effects

 

Command Overview

Model Textures and Physics

 

Command Overview

Objects and Environment

 

Command Overview


Important: Values with a red asterisk (*) are default values and can only be changed with sv_cheats enabled!


That's it!
Those are the -in my opinion- most important commands to build up a FPS config. The Objects and Environment as well as the Model Textures and Physics Section have a rather little impact FPS-wise, that's why these sections are not explained in depth. Feel free to use the commands to test out different values and see what works best for you. You are pretty much safe if you make a back up of your configs and place these commands in your autoexec.cfg. If you don't like the changes simply delete the config file and you are back to default.

To show you the difference between all important settings Off and On get a look at the: Comparison Screenshot
And here is the comparison between the Default CS:S Settings and my tweaked High Settings: Comparison Screenshot


Now let me get back to the previously mentioned X-Fi Sound card.
Before this card, did i use a somewhat outdated Creative Player Live card, which was okay. Then i switched to the X-Fi Xtreme Gamer and was immediately astonished! The sound is so much better, clearer and crisp with this card and not even a Audigy 2 comes close to it (i tested it out of curiosity). I have read alot about the card and multiple times have i read, that the X-Fi use the fastest sound chip that was ever produced. I thought "ok, nice! fast sound chip, great." and didn't fully realized what this means. In fact does this sound card manage to take away so much load off of the CPU to "render" the sound on it's own, that it indeed freed so much resources that i got a boost between 8 and 15 FPS depending on which map i'm on!
Yes you read correctly! Only for the fact that i switched to a better sound card did i not only got a superior sound experience but i also got a gratis 8-15 FPS boost in Source!

I think the sound is an often underestimated and overlooked resource to boost the over all performance. Especially if you use OnBoard sound should you consider to get a real sound card. The reason is simple: OnBoard sound uses usually integrated low cost sound chip and all the calculating work for the sound must be done by the CPU alone. If you now think about the fact that Counter-Strike Source is heavily CPU dependant, then it is obvious that you waste a lot resources right here. So before you consider to buy more RAM or an even better vid card, consider to upgrade your sound devices and i guarantee you that you wont regret it!

Alright boys, we are at the end of this looong article. I hope it was somewhat helpful for you to squeeze out some more FPS.


Best wishes to you all,
Bossi


p.s. Big Thanks to aMies for "beta read" the article :-)

© 2007 by Bossi