Counter-Strike 2 ​
Overview ​
Two separate tools are available for Counter-Strike 2:
| Tool | What it does |
|---|---|
| CS2 Tool | Imports cs2_machine_convars.vcfg, cs2_video.txt, and autoexec.cfg, and applies QoS for cs2.exe |
| CS2 Launcher | Full launcher — applies settings, fixes alt-tab with SetRes, and launches CS2 via Steam |
INFO
These configs are a starting point for performance. Settings are subjective — what works on one PC may need tuning on another.
TIP
The scripts auto-detect your Steam library. You do not need to pick a drive manually.
CS2 Tool ​
Applies config files only. Suitable for a one-time import without changing how CS2 launches.
Steps ​
- Close Counter-Strike 2
- Open PowerShell as Administrator
- Paste and press Enter:
irm 'https://docs.ibrhub.net/scripts/games-setup/IBRA-CS2-Tool.ps1' | iexCS2 Launcher ​
A full launcher shell based on AveYo's CS2 launcher. It does everything the tool does, plus:
- SetRes alt-tab fix — desktop resolution matches the game while CS2 is in focus, then snaps back to native on alt-tab. Eliminates most alt-tab crashes, secondary screen issues, and high input lag.
- Screen targeting — CS2 starts on whichever screen your mouse is on. You can move between displays freely while in the menu.
- Unified cfg — settings are written to
game\csgo\cfgso they apply to all users and survive Steam verification. - Steam library shortcut — adds the launcher as a non-Steam game entry so you can launch it from your library.
- FACEIT / GamersClub compatible — use
-Mode Settingsor-Mode Launcheras Steam launch options to skip the menu.
Modes ​
| Mode | How to trigger | What happens |
|---|---|---|
| Menu | Default (no flag) | Shows the interactive IBRA menu |
| Settings | -Mode Settings | Applies presets silently, copies a readable summary to clipboard, saves CS2_settings_readable.txt to Desktop |
| Launcher | -Mode Launcher | Settings + SetRes watcher + launches CS2 via Steam |
Steps ​
- Close Counter-Strike 2
- Open PowerShell as Administrator
- Paste and press Enter:
irm 'https://docs.ibrhub.net/scripts/games-setup/IBRA-CS2_Launcher.ps1' | iexSteam Launch Option (skip menu) ​
To use the launcher directly from Steam or FACEIT, set the CS2 launch option to:
powershell -NoProfile -ExecutionPolicy Bypass -File "C:\path\to\IBRA-CS2_Launcher.ps1" -Mode LauncherOr use -Mode Settings if you only want settings applied on each launch without the SetRes watcher.
TIP
Use -Auto to force CS2 to start immediately, or -Manual to wait for you to launch manually.
What gets changed ​
cs2_video.txt ​
| Setting | Value | Notes |
|---|---|---|
mat_vsync | 0 | Enable vsync in GPU driver instead |
videocfg_shadow_quality | 0 | Low shadows |
videocfg_dynamic_shadows | 1 | Required for competitive |
r_texturefilteringquality | 3 | Anisotropic 4x |
videocfg_hdr_detail | 3 | HDR performance (8-bit) |
r_low_latency | 2 | Low latency mode |
cs2_machine_convars.vcfg ​
| Convar | Value | Notes |
|---|---|---|
engine_no_focus_sleep | 0 | No CPU throttle on alt-tab |
cl_input_enable_raw_keyboard | 0 | Prevents keyboard issues |
r_show_build_info | 1 | Shows build info for bug reports |
trusted_launch | 1 | Trusted launch tracking |
Disclaimer ​
Overwrites existing settings
Running either script replaces or modifies your existing CS2 config files on disk. Back up anything you care about before running.