I recently started playing on something that have their servers in Asia, and as I'm in the United Kingdom my latency isn't proving to be as good as a lot of the other, more local players. I noticed on the forums that there was some suggestions for the 'foreign' players, and they've had quite a positive reception. After doing a little research (Googling) I noticed that this method is used by
a lot of gamers on a lot of different games, but being in a Graal bubble of ignorance I had never heard of it. With servers being in different locations that are pretty far away from each other (Zodiac in France, Unholy Nation in the US) this might come in use for those that have the UDP disabled.
Nagle's Algorithm is a method of handling information packets across the Internet. When it is enabled (which it is by default) it makes for slower, more efficient packet transmission. For online games that require constant communication, the algorithm can cause lag. Disabling the Nagle Algorithm equates to more packets being sent over a network, which equates to lower ping.
__________________
To disable the algorithm on
Windows XP:
- Go to the Start menu.
- Click on the "Run" button.
- Type in "regedit.exe" and hit enter.
- Browse to HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameter s\Interfaces\
- Look for a folder that contains your LOCAL IP ADDRESS under the Data column. The folder that it's in should be named similar, but not restricted to {1C3DE298-6536-4E3B-8BE6-457838544F56}. If there are more than 1 folders that contain your local IP, follow steps 6~9 in those folders.
- Go to [Edit]-[New]-[DWORD (32-bit) Value]
- Name the new file TcpAckFrequency. This is case sensative.
- Right Click on TcpAckFrequency and select [Modify]
- Set the Value Data to 1 and check off Hexadecimal.
- Restart your computer.
To disable the algorithm on
Windows Vista:
- Hold down the Windows key on your keyboard and press R.
- Type "regedit.exe" or just "regedit" (No quotations).
- Browse to HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameter s\Interfaces\
- Look for a folder that contains your LOCAL IP ADDRESS under the Data column. The folder that it's in should be named similar, but not restricted to {1C3DE298-6536-4E3B-8BE6-457838544F56}. If there are more than 1 folders that contain your local IP, follow steps 5~8 in those folders.
- Go to [Edit]-[New]-[DWORD (32-bit) Value]
- Name the new file TcpAckFrequency. This is case sensative.
- Right Click on TcpAckFrequency and select [Modify]
- Set the Value Data to 1 and check off Hexadecimal.
- Restart your computer.
Note: To get your Local IP, go to Run, type
CMD and in the command line that appears type
ipconfig /all. What you're looking for is your "IPv4" address.
__________________
You may notice a difference in performance, but a lot of people won't. The restriction will be gone, and as long as you don't change computers, other online games should run with Nagle disabled. Those who are very close to the server should feel very minimal changes, though they will feel a big change if they are trying to communicate to a server that's overseas on a game that uses TCP. It's a pretty old trick and a lot of you will probably already know about it, but it worked for me on Unholy Nation and other games I've been playing hence why I'm sharing. Thanks to the user Zephyre (of that other game) for most of the text in this post.