PDA

View Full Version : Neat trick that can help with lag or connection trouble


El Mariachi
Saturday, 12th April 2008, 18:16
Hi everybody :p

I saw this posted on the WoW forums, and since it works out great for me, I decided to repost it here :)

It doesn't work for some people, but for me it has improved things both in WoW and PotBS and my other online programs and utilities runs as good as always.

But enough babbling... here is the trick:

<><><> Read this first <><><>
1 - It might have side effects, like slowing down your download speed or affecting your performance on other softwares. (In most case, it doesn't change anything, but you've been warned)
2 - If you're not sure about what you're doing, just don't do it. I don't want to be responsible because you crashed your computer in some way because you made a huge error when editing the registry.
2.1 - Seriously, if you don't know what you're doing, don't do it.
3 - If you don't have the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\ directory, you can download and apply this file to your registry.
4 - Windows Vista users might want to check this post too.

Source - Elitistjerks.com

1 - TcpAckFrequency - NOTE if you are running Windows Vista this setting may not have any effect - a hotfix is needed which i'm tracking down. This works fine under Windows XP

Type "regedit" in windows "run.." dialog to bring up registry menu

Then find:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\Tcpip\Parameters\Interfaces\

There will be multiple NIC interfaces listed in there, find the one you use to connect to the internet, there will be several interfaces listed (they have long names like {7DBA6DCA-FFE8-4002-A28F-4D2B57AE8383}. Click each one, the right one will have lots of settings in it and you will see your machines IP address listed there somewhere. Right-click in the right hand pane and add a new DWORD value, name it TcpAckFrequency, then right click the entry and click Modify and assign a value of 1.

You can change it back to 2 (default) at a later stage if it affects your other TCP application performance. it tells windows how many TCP packets to wait before sending ACK. if the value is 1, windows will send ACK every time it receives a TCP package.

2 - TCPNoDelay
This one is pretty simple (Discussed here)

Type "regedit" in windows "run.." dialog to bring up registry menu

Then find:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers

Right-click in the right hand pane and add a new DWORD value, name it TCPNoDelay, then right click the entry and click Modify and assign a value of 1.

Click Ok and close the registry editor, then reboot your PC.

Once you're done with the technical stuff (it probably won't take more than 1 minute if you're not too bad at it), you can finally get your reward.

Cupcake
Saturday, 12th April 2008, 18:38
I've heard something about that working wonders for WoW, but I kinda ruled it out since Potbs uses UDP.

El Mariachi
Sunday, 13th April 2008, 00:02
Well all this trick does is disabling Nagle's algorithm, so of course it will only have limited to no effect on some applications and games. In some cases, this trick has been known to screw up connectivity for certain browsers and torrent clients on some systems.

It is helpful for WoW for sure, but I am not sure how much of an influence it has on PotBS because it uses UDP as you have also said. All I can say is that PotBS is still laggy for me from time to time, although it is somewhat less now than before, but I have had no disconnects since I did this thing. :)

Tapja
Sunday, 13th April 2008, 08:27
I've heard something about that working wonders for WoW, but I kinda ruled it out since Potbs uses UDP.

Potbs uses TCP as a fallback. Due to my current ISPs hate for anything UDP (killing UDP connections that have been live for over X minutes) I have Potbs running entirely on TCP until on 28th I get a new ISP. So might be helpful in my case :)