Counter-Strike 1.6, Windows 7, and lag spikes. The sequel.
Uncategorized September 7th, 2010Honestly I've had a shitload of problems already running Counter-Strike (1.6) lagfree. Important detail is that I'm trying to play wireless.
On XP, there was the Wireless Zero Configuration Service that was causing lagspikes (if you're on XP and having lagspikes, check that link 🙂 ).
Now that I am on Windows 7, I'm not sure what to look for. I've done a clean OS install, updated my video card drivers, wlan drivers, but to no avail.
When enabling "net_graph 1" in the Counter-Strike console, I get the following result. The left side is during normal gameplay (a straight green line), and on the right there's a bouncy, interrupted line.
I've set my cvars to:
cl_updaterate 101 cl_cmdrate 101 rate 20000 max_fps 101
These are the vars I like, I'm just telling them for information.
I've taken the following steps in the hope to reduce the lagproblems,
I hope something of this will work for you:
1. Disabling MMCSS
Multiple forums stated that the lagspikes could be caused by the Multimedia Class Sheduler service.
Run regedit and remove in the entry DependOnService the line that says "MMCSS".
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Audiosrv
You will have to reboot after this. But try the rest of the proposed fixes first to save some time.
2. Disable Network Throttling
Because multimedia programs require more resources, the Windows networking stack implements a throttling mechanism to restrict the processing of non-multimedia network traffic to 10 packets per millisecond.
This implies that we should set the rate a bit higher to allow more packets. This seems a bit irrelevant, but I did it anyway.
Modify the following key in your registry, set NetworkThrottlingIndex to FFFFFFFF (hex) or 4294967295 (dec):
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Multimedia\SystemProfile
(thanks to stranger for pointing out that it had to be FFFFFFFF instead of FFFFFF)
3. Nagle's algorithm
Beyond the obvious settings in Windows or on your router, here’s a list of tweaks that may help quite a bit. It involves disabling Nagle’s algorithm, also commonly known as TCP no delay, which is basically an optimization of network traffic that tries to reduce overall packet volume but can cause extra latency in the connection. This should work on Windows 7 or Vista, though the same principle can probably applied to other operating systems as well.
Go to the registry key for your network interface card, it's one of the {XXXX-XXXX-XXXX-XXXX}. Look for one that has 192.168.x.x in it.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\{45115C55-0588-4D99-B404-CE3246685EEF}
Add a new DWORD 32-bit value here, name it TcpAckFrequency, then set it to 1. Do the same for TCPNoDelay.
This step would require a reboot also. (This is why you shouldn't have rebooted earlier lol.
4. Disable IPv6
In the Network and Sharing Center, change the adapter settings of the connection you're using (Properties).
On the Networking tab, remove the tick from the IPv6 box. If there's no difference, you can always tick it again.
References:
http://windows7forums.com/windows-7-games/22315-problem-latency-counter-strike-1-6-a.html
http://social.answers.microsoft.com/Forums/en-US/w7network/thread/af7aaf26-c5e3-478c-b1b8-2b1443d1306b
http://lifeandcode.net/2009/05/reduce-game-network-latency-in-windows-7-or-vista/
November 7th, 2010 at 1:58 am
Hey im having the same problem. And I just wanted to say that this helped a bit.
Results (before and after ms' are for the same server):
BEFORE tweak
Normal gameplay 6-7ms during lagspike 200-226ms
AFTER tweak
Normal gameplay 6-7ms during lagspike 80-120ms
Maybe there is somthing else to do to completly stabling my ms ? Thank you in advance and sorry for my spelling.
November 7th, 2010 at 3:06 am
Nvermind. Found on other site that ThrottlingIndex should be ffffffff not ffffff. That completle stabled my ms. Good fix though
November 7th, 2010 at 5:17 am
Modified post,
thanks for your reply!
January 7th, 2011 at 6:06 pm
hello, i tried to run CS 1.6 on my laptop Asus N61VG-JX086V with Win 7. for uknown reasons my fps was like 27 and the game was lagging. as u says, your fps was a straight line and 100. where could be the problem? thanks
January 10th, 2011 at 2:34 pm
Hey smokee,
Have you done all the steps in the "tutorial" ?
There can be a number of reasons, especially when playing on a wireless network.
If your router supports QoS, try to configure that.
In my case, even after going through all these steps, I still experienced lagspikes. Seems like my homeline isn't that stable, in which case none of these fixes will help 🙂
May 13th, 2011 at 9:04 pm
Hey on the nagiles algorithym. Under my
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces\ --- These numbers dont match yours, will it still work if I pick one of the two I have?
And if so, I just make two dword 32 bits and name them TcpAckFrequency and TCPNoDelay and then click on each and set them to 1 hexa decimal? RIIGHT?
May 13th, 2011 at 9:04 pm
please email me [email protected]
May 13th, 2011 at 9:07 pm
I can't wait to try all of these when I get home from work. Your instructions are very elaborative... my cs 1.6 spieks from 40 too 160-300 sometimes and mostly when I shoot and when im around a large group
May 18th, 2011 at 1:18 pm
It's normal that the numbers don't match yours, it's different for each network interface. You have to locate the one for your wireless NIC if you're on wifi, or the one for ethernet if not. (Look for 192.168.X.X in one of the values.)If you're unable to locate it, do them all, it won't hurt 😛
April 24th, 2012 at 5:20 am
Thank you so much!
After trying so many "tips" and even that software which was supposed to "optimize" my connection, this is the only one that worked. Thanks again! My connection is so stable now. I have 15-20ms ping from 70ms and spikes up to 150ms.
June 17th, 2012 at 8:10 pm
I did everything accordingly but i still have HUGE lagspikes (basically 1 fps and 1500 + ping for about a sec) every ~ 10 secs ... its so frustrating 🙁
June 20th, 2012 at 7:35 pm
[...] [...]
July 2nd, 2012 at 5:48 pm
Hi there! I'm getting a few lags here and there in CS. My ping goes from 15-20 to 80-100 and it remains on that ping from 5 seconds to 30 seconds. It happens after I've played for an hour or two. It occurs a lot when I'm shooting and sometimes just randomly. Your tips have helped a lot, but it stills happens. Got anything else that might be able to fix the problem? I'm using a wireless connection on my Asus laptop. Asus N53SN specificially.
July 21st, 2012 at 1:56 pm
Do you have the lag spikes as well when you're connected with a UTP cable?
As it turns out, it's my ISP that is the culprit 🙂
August 17th, 2012 at 3:53 pm
Having a cable helps a ton, but still there is very small lagspikes happening here and there
October 24th, 2012 at 11:09 am
I have a high performance laoptop with Core i7 3rd gen 6mb cache, HD display, 8gb Ram, AMD Radeonâ„¢ HD 7730M DDR3 2GB - ICC, Yet i have loss in CSS of around 70-80. I play in a Ad-hoc network hosted by me. And the best part. I host the network and the game lags only for me and noone else. Evryone else seems to have a fine speed. I even tried connecting to my friends network yet again it lags only for me. We have 5 laptops al together and play in a local wireless LAN hosted in either of the laptop. Despite going through all the above procedures i'm not able to fix it. HELP plz...!!!
November 7th, 2012 at 8:37 am
I had symptoms exactly like this for a long time, however these fixes did not work for me. I finally went into router settings and changed the radio frequency. Completely fixed my issue.
July 23rd, 2017 at 5:20 pm
Thank Ò¯ou for thhe information. It helped É‘lot!