I used Process Lasso for exactly two things: keeping CS2 off logical CPUs 0–1 and setting it to High priority. It works, but I really don't like having extra programs running in the background, services, tray apps, GUIs, updaters. I want my system as close to stock and lightweight as possible.
So I made a tiny replacement: one 6.5 KB watcher that only exists while CS2 is running.
What it does
- Keeps cs2.exe off physical core 0
- SMT on: blocks both threads (usually logical CPUs 0 and 1)
- SMT off: blocks logical CPU 0 only
- Sets and maintains High priority
- Checks every 2 seconds and puts the settings back if CS2 changes them
- Exits 15 seconds after the game closes
- About 20–25 MB RAM and effectively 0% CPU while idle
- No service, no tray icon, no GUI, no telemetry, no network access, no game-file changes
Why a watcher instead of a one-time script?
CS2 resets its own affinity during startup. A script that sets it once gets overwritten. This stays alive for the session and re-applies it.
How it starts
A scheduled task listens for Windows event 4688 (process creation) for the exact cs2.exe path. When CS2 launches, the task starts the watcher in your session. When CS2 closes, the watcher waits 15 seconds and exits.
Install
Download CS2Affinity-Setup.zip from Releases.
Extract it.
Run Install-CS2Affinity.cmd.
Click Yes on the UAC prompt.
Launch CS2 normally.
The installer finds Steam/CS2 automatically, copies the watcher to %LOCALAPPDATA%\CS2Affinity, enables 4688 auditing, and creates the scheduled task.
About the code / AI disclosure
I'm not a programmer. I built this with AI help, tested it on my own PC, and cleaned it up. Because of that, I made it as transparent as possible:
- The C# source is included and heavily commented in plain English, you can read exactly what it does.
- The PowerShell installer is a plain text script you can open in Notepad.
- There's a build script so you can compile the exe yourself instead of trusting mine.
- No obfuscation, no packed binary, no network code, no injection, no game-file edits.
If you don't trust a random exe from Reddit (fair), read the source or build it yourself. The repo is small enough to go through in a few minutes.
Verify while playing
Get-Process cs2 | Select-Object Id, PriorityClass, ProcessorAffinity
Expected: High and 65532 (0xFFFC). The mask is detected from your CPU, so it differs on other systems.
Things to know
- It enables Windows Process Creation auditing (4688). This logs every new process to the Security log, not just CS2, that's how the trigger works. You can disable it on uninstall.
- The trigger uses the exact cs2.exe path from install time. If you move CS2 to another Steam library, rerun the installer.
- The exe is unsigned, so SmartScreen may warn once.
- Same settings Process Lasso was applying, not a magic FPS boost.
- Windows 10/11 only. Not affiliated with Valve. Use at your own risk.
GitHub: https://github.com/1stcorazon/cs2-affinity-watcher
Feedback welcome, especially from different CPU topologies (SMT off, Intel P/E cores, different core counts).