Nothing kills the competitive vibe faster than rubber-banding across the map or watching your shots register half a second late.
The mm_dedicated_search_maxping console command lets you set an upper limit on the ping you’re willing to accept when queuing for matchmaking.
Enabling the developer console
Before diving into the command, make sure you have the developer console enabled. If you haven’t set this up yet, head to Settings > Game > Enable Developer Console and toggle it to Yes.
Once enabled, press ~ (tilde) or ` (grave) to open the console. Need a walkthrough? Our developer console guide has you covered.
Understanding the Command
The command structure is straightforward:
mm_dedicated_search_maxping [number]
Replace [number] with your maximum acceptable ping in milliseconds. When you queue for a match, CS2 will only consider servers where your latency is below this threshold.
Max Ping for matchmaking from the UI
You can also set the max ping for matchmaking from the UI. This is nice because you can also see your ping to different servers in different regions.
Add it to your autoexec
To make this setting permanent, add it to your autoexec.cfg file. This way, your preferred max ping loads automatically every time you launch CS2.
If you don’t have an autoexec file set up yet, check out our autoexec creation guide for step-by-step instructions.
Once your autoexec is ready, just add this line:
mm_dedicated_search_maxping 80
Adjust the number to match your preference, save the file, and you’re all set. The next time you launch CS2, your ping limit will be active from the moment you start queuing.