They actually calculate it in 2 different ways:

They start off with returning the average network value for latency.

Scoreboard:  latency = latency - ( 0.5 / cmdrate )
Net_graph:  if ( cmdrate > 0.001 ) then subtract off that amount.

What happens (most commonly) is somebody puts their cmdrate low, or does
something like cl_cmdrate +20.  When this variable gets evaluated it isn't a
number so it returns 0.  In the Scoreboard that means the latency is
subtracted by 0.5 (cmdrate is set to 1 if it's 0 so you don't get a divide
by 0 error).  This throws the latency negative so they "clamp" it to 5.
Anything < 5 gets put at 5.

In the net_graph portion, the cmdrate isn't > 0.001 so it's left at the
actual latency.  At a correct cl_cmdrate setting these will be close, but in
the scoreboard they do some additional math to "smooth" out the number for
some dumb reason.

I hope this clears it up somewhat....in our mod we're going to make them
match.  Plus we won't allow non numerical settings.



_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to