/cs2-config

Little repo with my CS2 autoexec and all the configuration I do to make the game run optimally.

cs2-config

My hardware

  • CPU: AMD Ryzen 7 7800X3D
  • Motherboard: ASUS ROG Strix X670E-I
  • Memory: Corsair Vengeance 6000MHz CL30 DDR5 2x16GB
  • GPU: ASUS TUF RTX 4080 SUPER OC Edition
  • NVIDIA Driver: 551.52 DCH (installed using NVCleanstall)

Reset steam cloud configuration

Before completing your configuration, reset steam cloud to remove any residual configuration from CS:GO/CS2 being automatically applied and reset everything to complete default.

  1. Disable steam cloud for CS2
    1. Right click CS2 in your library and click properties
    2. Under "Steam Cloud", deselect "Keep game saves in the Steam Cloud for Counter-Strike 2"
  2. Go to your user data folder for CS2 at C:\Program Files (x86)\Steam\userdata\<account>\730 and delete the contents
  3. Launch and then close CS2
  4. Re-enable steam cloud for CS2
  5. Go to CS2 in your steam library and click the "File conflict" button under "cloud status"
  6. Select "Local Save" and then click "Continue"

Autoexec location

Download autoexec.cfg, modify values to your preference, then copy it to either of the following directories:

  • <steamlibrary>\steamapps\common\Counter-Strike Global Offensive\game\core\cfg
  • <steamlibrary>\steamapps\common\Counter-Strike Global Offensive\game\csgo\cfg

If you don't know the location of your steam library, it is installed to C:\Program Files (x86)\Steam by default.

Launch options

-threads 8 -high

In-game video settings

Resolution: 1440x1080 (stretched)

Starting from the "low" preset:

Setting Value
Boost Player Contrast Disabled
Wait for Vertical Sync Disabled
Multisampling Anti-Aliasing Mode 4X MSAA
Global Shadow Quality Low
Model / Texture Detail Medium
Texture Filtering Mode Bilinear
Shader Detail Low
Particle Detail Low
Ambient Occlusion Medium
High Dynamic Range Quality
FidelityFX Super Resolution Disabled (Highest Quality)
NVIDIA Reflex Low Latency Enabled

Shadow distance

To get shadows to render at distance when set to low, download update_cs2_video.ps1, right click it and run with PowerShell. This will automatically change the parameters in cs2_video.txt to make shadows render properly at low quality.

Note

You may have difficulty running this script due to execution policy. You can use a shortcut to bypass execution policy by placing update_cs2_video.ps1 in C drive and creating a shortcut with a location of powershell.exe -ep Bypass C:\update_cs2_video.ps1.

To set these parameters manually, open your cs2_video.txt file in C:\Program Files (x86)\Steam\userdata\<account>\730\local\cfg and find the following lines:

	"setting.csm_viewmodel_shadows"		"0"
	"setting.csm_max_shadow_dist_override"		"240"
	"setting.lb_barnlight_shadowmap_scale"		"0.250000"
	"setting.lb_enable_shadow_casting"		"0"

Change them to:

	"setting.csm_viewmodel_shadows"		"1"
	"setting.csm_max_shadow_dist_override"		"720"
	"setting.lb_barnlight_shadowmap_scale"		"0.400000"
	"setting.lb_enable_shadow_casting"		"1"

Warning

Changing any video settings in game will overwrite these parameters.

NVIDIA Image Sharpening

This registry change replaces the "Image Scaling" setting in NVIDIA Control Panel 3D settings with "Image Sharpening" which applies the legacy sharpening filter that was available in old drivers with little to no performace cost. This removes blurriness and makes textures look more crisp, click on the images in the table below for comparison screenshots.

Sharpening Off Sharpening On
  1. Download nvcpl_sharpening.reg and merge it
  2. Enable it in NVIDIA Control Panel under "Image Sharpening" in "Manage 3D settings" or by applying the values through NVIDIA Profile Inspector in the next section of this page

Note

If you have CS2 open you will need to restart it for this change to apply.

NVIDIA Profile Inspector (website)

Profile Inspector is an alternative to the "Manage 3D Settings" page in NVIDIA Control Panel for changing game profile settings. Once set, you can export/import profiles to make configuration from a clean install quicker and easier.

Editing the "Counter-strike 2" profile, starting from default settings:

Setting Value
2 - Sync and Refresh
Frame Rate Limiter V3 600 FPS
Maximum Pre-Rendered Frames 1
Ultra Low Latency - CPL State Ultra
Ultra Low Latency - Enabled On
Vertical Sync Force off
4 - Texture Filtering
Anisotropic Filter - Sample Optimization On
Texture Filtering - Quality High performance
Texture Filtering - Trilinear Optimization On
5 - Common
Ansel - Enabled Off
CUDA - Force P2 State Off
Power Management - Mode Prefer maximum performance
rBAR - Feature Enabled
rBAR - Options 0x00000001
rBAR - Size Limit 0x0000000040000000
Shadercache - Cachesize Unlimited
Threaded Optimization Off
Other
Memory Allocation Policy 0x00000001 (...MODERATE_PRE_ALLOCATION)
Unknown
0x002ED8CD (Image Sharpening - sharpen) 0x00000032
0x002ED8CE (Image Sharpening - ignore film grain) 0x00000011
0x00598928 (Image Sharpening - enabled) 0x00000001
0x00598949 (Image Sharpening - enabled) 0x0000000F

Don't forget to click "Apply changes".