Probleme/LAG/Choke/Freezuri CS:Source

Software - Discutii / Probleme
(Atentie - fara linkuri catre diverse softuri Crack/Warez! - Primiti BAN instant!)

Moderator: DeeJay

Probleme/LAG/Choke/Freezuri CS:Source

Mesaj #1 » de DeeJay » 17 Noi 2011 17:17

Exista un articol interesant pe net:
Sursa: http://www.etcwiki.org/wiki/Counter_Str ... s_and_ping

CSS Lag Ping Loss and Choke Intro

Ping is NOT Latency

Lag Related Definitions
Lag - A term used to say that a persons connection is experiencing a delay; lagging.
Ping - Round trip time for data to the server and back again, in milliseconds. (ping is MORE than latency)
Latency - One way trip time from your computer, to the server in milliseconds. (latency is LESS than ping)
Rates - General term used for the clients network speed settings in counter strike source (cl_cmdrate cl_updaterate rate)



Choke and loss are indicators of where the lag is coming from

1.Choke - Choke is lost packets of information sent between you and the server. Choke basically means that your computer is sending your players position, and what he does (shoot, move, nade, knife) to the server, and its not getting there. Counter Strike Source default is to send your players actions to the server 30 times a second. (cl_cmdrate)
Choke is caused by two things: 1.Your computer is sending too many packets to the server per second. If you try to send 100 commands to the server per second, and the connection between you and the server can only accept 40, you are going to be getting 60 choke. This will make you SUCK in game, none of your shots will register, and only 40% of the things you try to make your player do will be done, if at all.
2.The server is not able to read all of the information being sent to it. This can be caused by network lag at the server, or CPU lag at the server. The client cannot control this, but can accomodate for it by lowering their cmdrate and updaterate

2.Loss - Loss is lag from outside your computer and usually outside the server. This means that while your commands that are going to the server, they are following a path (sometimes can be 30 networks your commands go through before they reach the server) and somewhere in that path, the packets dont make it to the next place. Those packets are 'lost' in the bowels of the net. Loss can also come from wireless connections, in which case you can change your wireless channel to fix or get closer to your access point. Loss is for the most part out of your control, unless your connection just plain sucks.







Net_Graph 3

Net Graph 3 is a tool that counter strike source displays on your heads up display. It shows all relevant info about your connection to the server. To start, you will need to be able to access the console in Counter Strike Source. Press the ~ button, and drop the console. Enter the command "net_graph 3" and press enter (to remove this later, net_graph 0). Once you leave the console, you should see in the lower right of your screen some numbers that look like this:


1.FPS- How many frames per second your graphics card is computing
2.Ping- Round trip time from your computer to the server and back
3.Incoming Packet Size - size of incoming packets from the server
4.Incoming Data - how many kilobytes per second you are receiving from server
5.Packets Per Second - times per second your computer is receiving info from the server
6.Outgoing Packet Size - size of outgoing packets from your computer
7.Outgoing Data - how many kilobytes per second you are sending to the server
8.Packets Per Second - times per second your computer is sending info to the server
9.Loss - explained above
10.Choke - explained above

Fix Counter Strike Source Lag

You will need to know how to read net_graph 3, and you will need to have it enabled. You need to join a 100 tick server to tweak these settings properly.


Important CSS Rate Commands

cl_updaterate - How many times per second your computer asks the server for players positions (default: 20)
cl_cmdrate - How many times per second your computer sends your players position to server (default: 30)
rate - Maximum bytes per second you can receive from a server (default: 10000)




cl_cmdrate and cl_updaterate
1.Join a counter strike source server that is 100 tick. Open the console using the ~ key and enter in console: cl_cmdrate 85
cl_updaterate 70
rate 30000
2.Play the game for a few minutes. You will need to make sure that area 5 and 8 (packets per second in/out) on the net_graph is not being limited by the server. If it stays at 33 or 66 all the time, it means you should tweak this on a different server that allows for higher rates (100 tick servers means the server CPU has a max of 100 updates and commands per second!)
3.Once you find a server that is 100 tick, you want to make sure your rates are like they are above. Play on the server for a few rounds, and keep an eye on your CHOKE and LOSS in your net_graph 3.
4.Choke will spike at round changes, and that's normal. In the middle of a round, check your net_graph 3 and look at your choke. Take a few separate checks over a few rounds. If you want to be extra thorough try more than one css map. Average the choke you are getting a few times during the middle of a round. If the average choke you tested is above 5, you are experiencing lag that will noticeably affect your gameplay, and will need to lower your rates to fix the lag. Look below.
5.If the rates you tested still give you choke in the middle of a round, lower cl_cmdrate and cl_updaterate a tad, say 15 points each:cl_cmdrate 70
cl_updaterate 55
Keep the ratio of cl_updaterate and cl_cmdrate about the same during your changes.

This means cl_cmdrate is higher than cl_updaterate by a pinch.
6.Try the new settings, and continue checking your choke on net_graph 3 at the middle of a round. You want to CONTINUE TO LOWER your rates until you get less than 2 choke average in the middle of a round. Choke at the end and beginning of a round is normal. Servers with lots of plugins might spike 80+ choke during round changes.
7.Once you get to 0 (or less than 2) choke during your mid round gameplay you have your proper css rates for that server.





The rate setting in CSS

The rate setting is used to set the maximum amount of data coming to you from the server in bytes per second. It will not increase the amount of data your computer will take in, just raises the limit. The more players on the server, the more data you will need to recieve. On a 32 player server, you receive player positions, voice, chat, nades, weapons, etc That will obviously use a lot of bandwidth to receive all that info. If your rate is set too low in CSS, you will see other players all skipping around (not just one player, all players) and your shots will not register as you want.

In short, just set your rate to 30000 and you will be fine.
rate 30000
You may use a higher value, as the server defines the max allowed rate. That way you never run into problems where you actually need more than 30000 - for example on a busy fun or bunnyhop server.



Eu am setat la mine:

] rate
"rate" = "33000" ( def. "10000" )
- Max bytes/sec the host can receive data
] cl_cmdrate
"cl_cmdrate" = "70" ( def. "30" ) min. 10.000000 max. 100.000000
archive
- Max number of command packets sent to server per second
] cl_updaterate
"cl_updaterate" = "50" ( def. "20" )
archive
- Number of packets per second of updates you are requesting from the server
]
] cl_interp
"cl_interp" = "0.100000" ( def. "0.1" ) min. 0.000000 max. 0.500000
client
- Sets the interpolation amount (bounded on low side by server interp ratio settings)
I spin this!
My PC: I7 3770, 16G Ram, GTX 980, SSD 180GB

Avatar utilizator

Re: Probleme/LAG/Choke/Freezuri CS:Source

Mesaj #2 » de DeeJay » 18 Noi 2011 23:23

important e sa aveti choke mic (sub 3).
la mine choke e constant 0 si ff rar creste la 2 sau 3 iar mie imi merge pe Reloaded cu setarile astea f bine.
I spin this!
My PC: I7 3770, 16G Ram, GTX 980, SSD 180GB
Avatar utilizator

Re: Probleme/LAG/Choke/Freezuri CS:Source

Mesaj #3 » de Eseth » 19 Noi 2011 00:50

DeeJay, setarile de mai sus se refera doar la cei care sufera de lag. sunt multi carora le sacadeaza si cu setarile astea (ex. eu, adrenalina, kamikazes, nik uneori si mai sunt cativa de la care am auzit ca au probleme cu asta).

P.S. am choke constant 0 la fel ca si la tine, dar cateodata am loss (2-3 maxim).

P.P.S. trebuie rezolvata si problema cu freeze-urile. Ceea ce ai scris tu in titlu la topic cu freeze-urile nu se rezolva cu setarile astea. Am observat de ceva timp ca nu se blocheaza doar jucatorul din mers sau din tras in timp ce mai trece cate un freeze, se opreste tot, ca si cum i-ai da pause pe 20 msec (se opreste tot inclusiv si net_graph-ul). Am pornit net_graph 3 si la graficele alea imi arata o intrerupere in timp ce facea freeze-u ala. Am observat ca multi sufera de la asta, dar nu atrag prea mare atentie si nu-si bat capul cum sa rezolve. Sper sa gasesc o solutie "antifreeze" (sa nu va ganditi la antifreeze-ul de la masina =)) ).
Nusquam est verus. Sulum res est licitus.
Avatar utilizator

Re: Probleme/LAG/Choke/Freezuri CS:Source

Mesaj #4 » de DeeJay » 19 Noi 2011 10:08

eu nu mai am problema cu freeze, acea problema este de la client (pcul tau), de asta ti se opreste si graficu ala care nu ar trebui sa se opreasca ci sa mearga fluent. incearca sa modifici setarile la video astfel incat sa nu ti se mai blocheze graficul. daca toti care ar intra pe reloaded ar avea ratele alea setate s-ar juca fara nicio problema.
daca ai loss inseamna ca ai ceva cu netu..lasa un cmd si da ping css2.webforest.ro -t si vezi daca merge fluent.
I spin this!
My PC: I7 3770, 16G Ram, GTX 980, SSD 180GB
Avatar utilizator

Re: Probleme/LAG/Choke/Freezuri CS:Source

Mesaj #5 » de Eseth » 19 Noi 2011 15:51

DeeJay scrie:acea problema este de la client (pcul tau), de asta ti se opreste si graficu ala care nu ar trebui sa se opreasca ci sa mearga fluent. incearca sa modifici setarile la video astfel incat sa nu ti se mai blocheze graficul


aha, pana la update-urile v1.0.0.67 - v1.0.0.68 totul mergea perfect si acum nu stiu din care motiv deja trebuie sa-mi schimb setarile la video si restul.. evident ca aia de la Valve dupa ce au implementat asta cu multithread la servere si au optimizat multithread-ul la client (pentru ca inainte cu multicore rendering imi mergea sacadat) totusi n-au dus treaba pana la capat. Cel mai ciudat e ca pe unele servere (uneori si pe pe ale noastre), in unele situatii nu observ aceste blocari.

P.S. rezultatele pingului css2.webforest.ro

packets sent: 280
packets recieved: 279
loss = 1
Nusquam est verus. Sulum res est licitus.

Avatar utilizator

Re: Probleme/LAG/Choke/Freezuri CS:Source

Mesaj #6 » de DeeJay » 19 Noi 2011 17:35

deci e clar la tine problema e de la net..nu trebuie sa ai loss cand dai ping..
undeva intre tine si css2 este o problema cu un router...incerca sa dai ping si in idesys.ro -t si vezi daca tot ai loss
daca si aici ai loss atunci problema e undeva ori la tine in pc ori in reteaua ta de net..
I spin this!
My PC: I7 3770, 16G Ram, GTX 980, SSD 180GB
Avatar utilizator





GameForest

Cea mai tare Comunitate online dedicata jocurilor!
GameForest este un loc perfect pentru toti cei care se bucura de jocuri pe internet!
Va invitam pe serverele noastre de Counter-Strike Source, Counter-Strike Global Offensive si Team Fortress 2!

Aceasta comunitate exista din 16 Mar 2011 19:37 si este online de 13 Ani, 1 Luna si 20 Zile
GameForest, WebForest are registered trademarks of IDeSys NetWorks S.R.L., Valve, the Valve logo, Half-Life, the Half-Life logo, the Lambda logo, Steam, the Steam logo, Team Fortress, the Team Fortress logo, Opposing Force, Day of Defeat, the Day of Defeat logo, Counter-Strike, the Counter-Strike logo, Source, the Source logo, and Counter-Strike: Condition Zero are trademarks and/or registered trademarks of Valve Corporation. All other trademarks are property of their respective owners. © GameForest   Powered by IDeSys NetWorks