Counter-Strike

Counter-Strike

116 betyg
Netcode Rates Guide (2023)
Av Gr4Ng3R^
I noticed gameplay is so laggy with default rate values.I have been researching this discussion for years.I have read many articles, I did many experiments....and unfortunately many people didn't notice yet and they don't know this discussion,they have gameplay problems.Also, this discussion was ignored by Valve.
I explained good values of server and client rates

NOTE:You can apply these settings to other GoldSrc games(czero,dmc,dod,gearbox,valve etc.)


   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
rate
Maximum allowed rate value was increased to 100000 in 11 Feb 2013 Half-Life update.But I think most stable value should be 20000.

Okay but why 20000 is the most stable value?
  • Because many players still use 20000.
  • Because many admins don't use sv_maxrate 100000.
  • Because the maximum allowed value was 20000 for all GoldSrc games before.But this changed only for CS and HL in 2013. (so 20k is original value)
  • Because sv_lan_rate is still 20000 so 100000 is unnecessary.
  • Because many nonsteam cs releases use 20000(for example:cs warzone release).If you want check it, download and look at the cfg files.

So,
It should be 20000

NOTE:You can add this client command to userconfig.cfg in cstrike folder.You can create this cfg file yourself.
cl_cmdrate
Default value of cl_cmdrate is 60.It is so bad because it is not compatible with 100fps.

If you want to see it yourself , type "net_graph 1" in console and press Enter.
a graph will appear on right bottom and then connect to a good server.If you use default value (60) , you will see red dots on graph.It means it is bad and gameplay will not be smooth.When you jump or shoot, you will see that lag.If you still can't detect lag, please follow this guide and try again.You will see difference.

Okay ,what is the correct value? hmm...it should be 105.
Rather," it should be:your fps+5"

I have read many articles about this command.They say "It should be: your fps+5" too.

So,
It should be 105

NOTE:You can add this client command to userconfig.cfg in cstrike folder.You can create this cfg file yourself.
cl_updaterate
Default value of cl_updaterate is 60 like cl_cmdrate.Type "net_graph 1" again and connect to a good server.Look at the green line.If it is a broken line, it means it is bad.Unfortunately, you will see broken line with default value (60).

Shortly, It should be equal to: your fps
and
some authors say this too.

So,
It should be 100

NOTE:You can add this client command to userconfig.cfg in cstrike folder.You can create this cfg file yourself.
cl_dlmax
"dlmax" means maximum data(chunks of player decals, etc) download speed from server.So, i think it is unnecessary for smooth gameplay but it should be 1024 (maximum value of cl_dlmax) because, internet speed is faster nowadays.

So,
It should be 1024

NOTE:You can add this client command to userconfig.cfg in cstrike folder.You can create this cfg file yourself.
fps_max
Okay fps should be 100 but this command is really buggy now.When you type "fps_max 100" in console you will get "100.5 fps" and it affects the green line (updaterate line) in net_graph.So, we want 100 fps, we type "fps_max 100" but we get 100.5 fps?

and i tested with "fps_max 99.5" and fps is 100 now.

and then i tested fps_max "100" in old builds (old versions of counter-strike) and fps was 100.

finally,
if you type fps_max 100 in old counter-strike builds, your fps will be 100
but
if you type fps_max 100 now, your fps will be 100.5.

i mean the formula is; (FPS=fps_max+0.5) now.

So,
It should be 99.5

NOTE:You can add this client command to userconfig.cfg in cstrike folder.You can create this cfg file yourself.
Server Commands (Online and LAN)
I think some default server values are too bad.
You can test with HLDS yourself:
Create a LAN server.Run counter-strike and connect to your server.

The gameplay will not be like singleplayer.You can see difference.Especially when you are shooting.
Look at the net_graph.You will see broken green line.I say again it means it is bad.

This happens because default server rates are too low and they are too old values (since 2005)
Valve still didn't fix this issue.

Add these commands to server.cfg and listenserver.cfg:
sv_minrate 0
sv_maxrate 20000
sv_lan_rate 20000
sv_minupdaterate 30
sv_maxupdaterate 60

and test it again! you will see difference.Gameplay will be more smooth.
about HLDS
You can't run HLDS.exe
When you click it,nothing happens
because valve removed "admin" folder from "steamapps\common\Half-Life\platform"

so you need that "admin" folder.

You can find it in "Download Link" section
TL;DR
Add these commands to cstrike\userconfig.cfg (you can create it yourself):
rate "20000"
cl_cmdrate "105"
cl_dlmax "1024"
cl_updaterate "100"
cl_cmdbackup "2"
fps_max "99.5"
fps_override "1"
gl_vsync "0"

Add these commands to cstrike\server.cfg and cstrike\listenserver.cfg:
sv_minrate 0
sv_maxrate 20000
sv_lan_rate 20000
sv_minupdaterate 30
sv_maxupdaterate 60

NOTE: If you are lazy, go to "Download Link" section

NOTE: You can apply these settings to other GoldSrc games(czero,dmc,dod,gearbox,valve etc.)
Download Link
I made a fix pack for All GoldSrc games.

It includes:
  • "userconfig.cfg" files for all GoldSrc games
  • Fixed "server.cfg" files for all GoldSrc games
  • Fixed "listenserver.cfg" files for all GoldSrc games
  • "admin" folder for HLDS
  • You can see some other cfg files and they are empty (they are ineffective) . I added them because some people may use them.

Installation:
Just copy these folders to your half-life directory (steamapps\common\Half-Life) and replace them

Google Drive Link:
https://drive.google.com/file/d/0B4d7l2ltQV5GTEhSbDFwY2ZNSjA/view?resourcekey=0-xmMAQEABe_ocIngM0lkbew

NOTE: Just remove "space" between "link." and "tl" .Then copy link

NOTE: You can check files before downloading

Compare Videos
NOTE: Videos don't have 60fps feature and both gameplays are 60fps.You can see only a net_graph in first video.Also, i say again, if you can't see difference in videos, you can test it yourself and then you will see difference

NOTE: I recommend, please watch videos @720p and Fullscreen

with Default values:

with New values:
16 kommentarer
^2vova^1 ლ(ʘ益ʘლ) 11 jun @ 8:01 
"Maximum allowed rate value was increased to 100000 in 11 Feb 2013"

FAKE there is no patch 11 Feb 2013
https://liquipedia.net/counterstrike/Counter-Strike_patches

no fixes about "rate" cvar
Kundalini 17 nov, 2024 @ 17:19 
Useful information. Thank you.
NacermaNN;; 12 mar, 2024 @ 12:36 
взаимные комментарии)
+rep хорошо играет
+rep good player
+rep nice player
+rep добрая
+rep хороший тиммейт
+rep солнышко
+rep nice teammate
+rep милая тян
+rep U BEST
+rep nice girl
+rep so good
+rep nice profile
+rep мяу)
+rep умничка
+rep very nice and non-toxic player
+rep хорошенькая
+rep хорошо играет
+rep давай сыграем как-нибудь
NacermaNN;; 12 mar, 2024 @ 12:36 
взаимные комментарии)
+rep хорошо играет
+rep good player
+rep nice player
+rep добрая
+rep хороший тиммейт
+rep солнышко
+rep nice teammate
+rep милая тян
+rep U BEST
+rep nice girl
+rep so good
+rep nice profile
+rep мяу)
+rep умничка
+rep very nice and non-toxic player
+rep хорошенькая
+rep хорошо играет
+rep давай сыграем как-нибудь
NacermaNN;; 12 mar, 2024 @ 12:36 
взаимные комментарии)
+rep хорошо играет
+rep good player
+rep nice player
+rep добрая
+rep хороший тиммейт
+rep солнышко
+rep nice teammate
+rep милая тян
+rep U BEST
+rep nice girl
+rep so good
+rep nice profile
+rep мяу)
+rep умничка
+rep very nice and non-toxic player
+rep хорошенькая
+rep хорошо играет
+rep давай сыграем как-нибудь
Yoggi 25 jun, 2023 @ 17:45 
I guess we can't really trust the net_graph showing 100.5, since it might as well be the coding for the net_graph that isn't giving us the correct frame-rate. This should instead be tested with a third-party software to be sure. Otherwise, I like these more sincerely articulated guides with more concrete information about each cvar. Thanks!
inbremen 10 apr, 2023 @ 19:18 
so tell me about what the green line and purple line means in the net_graph 1 pls
xbox360 12 mar, 2023 @ 0:05 
actual?
Wolf Knight 10 maj, 2019 @ 16:32 
thanks :)
nullcat0 15 apr, 2019 @ 21:09 
great guide, thank.