Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-13-2009, 03:15 AM
Rufus Rufus is offline
Registered User
Join Date: Jun 2004
Location: United Kingdom
Posts: 4,698
Rufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud ofRufus has much to be proud of
Thumbs up Possible Latency Reduction

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:
  1. Go to the Start menu.
  2. Click on the "Run" button.
  3. Type in "regedit.exe" and hit enter.
  4. Browse to HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameter s\Interfaces\
  5. 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.
  6. Go to [Edit]-[New]-[DWORD (32-bit) Value]
  7. Name the new file TcpAckFrequency. This is case sensative.
  8. Right Click on TcpAckFrequency and select [Modify]
  9. Set the Value Data to 1 and check off Hexadecimal.
  10. Restart your computer.
To disable the algorithm on Windows Vista:
  1. Hold down the Windows key on your keyboard and press R.
  2. Type "regedit.exe" or just "regedit" (No quotations).
  3. Browse to HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameter s\Interfaces\
  4. 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.
  5. Go to [Edit]-[New]-[DWORD (32-bit) Value]
  6. Name the new file TcpAckFrequency. This is case sensative.
  7. Right Click on TcpAckFrequency and select [Modify]
  8. Set the Value Data to 1 and check off Hexadecimal.
  9. 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.

Last edited by Rufus; 08-13-2009 at 03:24 AM.. Reason: Moon Goddess approved the Wikipedia link.
Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:28 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.