Network Issue
CS2
SteamNetworkingSockets Lock Warning & Game Freezes - CS2 Fix Guide
🎯 Quick Answer
Resolve CS2 freezing by disabling hardware acceleration in Discord and Steam, enabling Multicore Rendering and Uber Shaders in-game, and setting Windows Power Plan to High Performance.
SECTION 1: OVERVIEW
The "SteamNetworkingSockets lock held for X ms" error is a performance warning indicating thread starvation within the game's networking subsystem. This error occurs on the Windows platform for Counter-Strike 2 (CS2) and its predecessor, Counter-Strike: Global Offensive (CS:GO). The issue is classified as common among players with specific software configurations. The severity is high, as it manifests as game-breaking micro-freezes lasting 600-1100 milliseconds, occurring multiple times per round. The exact error message is "SteamNetworkingSockets lock held for [TIME]ms. (Performance warning.)" followed by a call stack includingServiceThread, CSteamNetworkConnectionBase::Think, and SteamDatagramClientThinker::Think. The accompanying diagnostic states: "This is usually a symptom of a general performance problem such as thread starvation."
SECTION 2: SYMPTOMS
The primary observable symptom is the game client freezing completely for 0.6 to 1.1 seconds, typically 2-3 times per competitive round. The application halts all rendering and input processing during these intervals. The game console displays the specific "SteamNetworkingSockets lock held" warning message concurrently with each freeze event. The high frame rate counter remains unchanged during the freeze, falsely indicating normal performance. The error occurs during standard online gameplay, most frequently during network-intensive operations such as player state updates or server pinging.SECTION 3: COMMON CAUSES
Category: Software Conflict Specific technical explanation: Chromium Embedded Framework (CEF) processes from applications like Discord and the Steam client browser compete with CS2 for CPU thread priority. These processes execute background rendering tasks that can monopolize a CPU core, starving the game'sServiceThread.
Why this causes the problem: The SteamNetworkingSockets service thread cannot execute its Think cycle on time, causing the network lock to be held for extended periods, which blocks the main game thread.
Category: Configuration Error
Specific technical explanation: The in-game video setting "Multicore Rendering" is disabled. This forces CS2's rendering workload onto a single CPU thread, increasing contention for remaining threads needed by the networking system.
Why this causes the problem: Thread starvation worsens as a primary CPU core becomes saturated, delaying the execution of other critical threads, including the networking service thread.
Category: Configuration Error
Specific technical explanation: The in-game video setting "Uber Shaders" is set to Disabled or Auto. This causes the game to compile shaders dynamically during gameplay, introducing sudden, high-priority CPU workloads.
Why this causes the problem: These compilation bursts consume CPU cycles that are required by the SteamNetworkingSockets thread, leading to temporary starvation and a locked state.
Category: System Configuration Error
Specific technical explanation: The Windows Power Plan is configured to "Power Saver" or "Balanced." These plans allow the processor to reduce its clock speed (C-states) and core availability, even under load.
Why this causes the problem: The networking thread's required processing time window is exceeded when the CPU downclocks, resulting in a lock timeout manifesting as a freeze.
Category: Software Conflict
Specific technical explanation: Outdated or corrupted GPU drivers, particularly NVIDIA GeForce Game Ready Driver versions 531.x and earlier, contain known scheduling optimizations that can interfere with application-level thread management.
Why this causes the problem: The driver's thread scheduler may incorrectly deprioritize the game's networking thread in favor of other processes.
Category: Network Configuration
Specific technical explanation: Network Adaptor Interrupt Moderation or Energy-Efficient Ethernet (EEE) settings are enabled in the network device driver. These features batch network interrupts to save power.
Why this causes the problem: Batched network processing creates latency spikes that can extend the time the SteamNetworkingSockets lock is held, triggering the warning and freeze.
SECTION 4: SOLUTIONS
Solution 1: Disable Hardware Acceleration in Background Applications
Difficulty: Easy Time Required: 5 minutes Success Rate: High Prerequisites: None Steps:- Close Discord completely via the system tray icon.
- Launch Discord. Click the User Settings (gear icon) near your username.
- Navigate to App Settings > Advanced.
- Disable the toggle for Hardware Acceleration. Restart Discord when prompted.
- Exit the Steam client completely.
- Navigate to
C:\Program Files (x86)\Steam(or your Steam installation directory). - Right-click on
steam.exe, select Create shortcut. - Right-click the new shortcut, select Properties.
- In the Target field, append
-no-browser -disable-gputo the existing path. The field should read:"C:\Program Files (x86)\Steam\steam.exe" -no-browser -disable-gpu - Use this modified shortcut to launch Steam.
Solution 2: Configure In-Game Video Settings
Difficulty: Easy Time Required: 2 minutes Success Rate: High Prerequisites: None Steps:- Launch Counter-Strike 2.
- Open the Settings menu and navigate to the Video tab.
- Under Advanced Video, set Multicore Rendering to Enabled.
- Set Uber Shaders to Enabled (not "Auto").
- Click Apply.
Solution 3: Set Windows High-Performance Power Plan
Difficulty: Easy Time Required: 3 minutes Success Rate: Medium Prerequisites: Administrator access recommended Steps:- Press
Windows Key + R, typecontrol panel, and press Enter. - Set "View by" to Large icons and select Power Options.
- If present, select the High performance plan. If not visible:
- Click Create a power plan on the left sidebar.
- Select High performance and name the plan "CS2 Performance".
- Click Next, then Create. Select the new plan.
- Click Change plan settings next to the selected plan, then Change advanced power settings.
- Expand Processor power management, then Minimum processor state. Set both On battery and Plugged in to
100%. - Expand PCI Express > Link State Power Management. Set both settings to Off.
- Click Apply, then OK.
Solution 4: Update and Clean Install GPU Drivers
Difficulty: Medium Time Required: 10 minutes Success Rate: Medium Prerequisites: Administrator access required Steps:- Download the latest NVIDIA Game Ready Driver from the official NVIDIA website.
- Download Display Driver Uninstaller (DDU) from
https://www.wagnardsoft.com. - Boot Windows into Safe Mode (hold Shift while clicking Restart in Windows Start menu > Troubleshoot > Advanced options > Startup Settings > Restart > Press 4).
- Run DDU. Select "NVIDIA" and click "Clean and restart".
- After the PC restarts to normal mode, install the previously downloaded driver package.
- During installation, select Custom (Advanced) installation and check the box Perform a clean installation.
C:\NVIDIA.
Solution 5: Disable Network Adapter Power Saving & Interrupt Moderation
Difficulty: Advanced Time Required: 5 minutes Success Rate: Low Prerequisites: Administrator access required Steps:- Press
Windows Key + Xand select Device Manager. - Expand Network adapters. Right-click your primary Ethernet or Wi-Fi adapter and select Properties.
- Navigate to the Power Management tab. Uncheck Allow the computer to turn off this device to save power.
- Navigate to the Advanced tab.
- Scroll the property list. Locate and select Interrupt Moderation (or Interrupt Moderation Rate). Set its value to Disabled.
- Locate properties named Energy Efficient Ethernet, Green Ethernet, or IEEE 802.3az Power Save Mode. Set these to Disabled.
- Locate Flow Control and set it to Disabled.
- Click OK.
Solution 6: Set CS2 Process Priority and Affinity
Difficulty: Advanced Time Required: 3 minutes Success Rate: Low Prerequisites: Administrator access required Steps:- Launch CS2 and join a game.
- Open Task Manager (
Ctrl+Shift+Esc). Go to the Details tab. - Right-click the
cs2.exeprocess. Select Set priority and choose High. Confirm the change. - Right-click
cs2.exeagain. Select Set affinity. - By default, all CPUs (0 through n) are checked. For an 8-core/16-thread CPU like the R7 3800X, uncheck CPU 0 and CPU 1.
- Click OK.
SECTION 5: PREVENTION
To prevent recurrence, maintain a standardized launch procedure: start Steam via the modified shortcut, launch Discord with hardware acceleration disabled, then launch CS2. Verify the Windows High-Performance power plan is active before each gaming session. Schedule a quarterly clean installation of GPU drivers following major game or operating system updates. Monitor system stability using the in-gamenet_graph 1 command to watch for latency variance and the developer console for the re-emergence of performance warnings.
SECTION 6: WHEN TO CONTACT SUPPORT
Contact Steam Support if all solutions fail and the error persists across a complete operating system reinstall with updated chipset drivers. Provide the full console log containing the lock warnings, thesysteminfo command output, and the exact model numbers of your motherboard, RAM, and SSD. Official support channels are located at https://help.steampowered.com. Include DxDiag and MSInfo reports generated via the dxdiag and msinfo32 commands in your support ticket.