Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 08-13-2009, 03:18 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
Another means of 'speeding up your computer a little' is by adding the key TcpNoDelay to the registry.

The process is the same for both XP and Vista:
  1. Open up a new Notepad document.
  2. Copy and paste this into the notepad:

    PHP Code:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ]

    [
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers]
    "TCPNoDelay"=dword:00000001

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\OCMsetup]

    [
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\Security]
    "SecureDSCommunication"=dword:00000000

    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Paramet ers\setup]

    [
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSMQ\Setup
  3. Go to File > Save As.
  4. Change the Save As Type to All Files.
  5. Save the name as NoDelay.reg
  6. Look for a file where you saved it that looks like a defragmenting box.
  7. Right click the file and select Merge.
  8. If you don't notice a difference, try to restart your computer.
This won't change your ping very dramatically, or at all for some people, but it will for others.
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.

Last edited by Rufus; 08-13-2009 at 04:14 AM..
Reply With Quote
  #3  
Old 08-13-2009, 03:29 AM
-Ramirez- -Ramirez- is offline
Registered User
Join Date: Jun 2002
Location: USA, Ohio
Posts: 729
-Ramirez- has a spectacular aura about-Ramirez- has a spectacular aura about
The forums screwed up your post. The random spaces will ruin the registry file you want people to copy.

This has more detailed information on exactly what it does (well, at least one of the things mentioned), for those curious and lazy. I was bored and had to read for myself.
__________________
Kat
Reply With Quote
  #4  
Old 08-13-2009, 03:53 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
Quote:
Originally Posted by -Ramirez- View Post
The forums screwed up your post. The random spaces will ruin the registry file you want people to copy.
Fixed that.
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #5  
Old 08-13-2009, 03:59 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Wiki
Applications that expect real time responses can react poorly with Nagle's algorithm. Applications such as networked multiplayer video games expect that actions in the game are sent immediately, while the algorithm purposefully delays transmission, increasing latency at the expense of bandwidth. For this reason applications with low-bandwidth time-sensitive transmissions typically use TCP_NODELAY to bypass the Nagle delay.
I guess we wait and see if Graal uses TCP_NODELAY o:
__________________
Quote:
Reply With Quote
  #6  
Old 08-13-2009, 12:32 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by Rufus View Post
Fixed that.

Quote:
Originally Posted by Registry File
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSMQ]

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSMQ/Parameters]
"TCPNoDelay"=dword:00000001

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSMQ/Parameters/OCMsetup]

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSMQ/Parameters/Security]
"SecureDSCommunication"=dword:00000000

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSMQ/Parameters/setup]

[HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MSMQ/Setup]
I think that would be more correct?
__________________
Reply With Quote
  #7  
Old 08-14-2009, 12:18 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
The Nagle algorithm is disabled in Graal since v1.3.
We could setup a server in asia but I don't know if it would help a lot because it would apparently be laggy for people in europe or US.
Reply With Quote
  #8  
Old 08-14-2009, 02:32 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Stefan View Post
We could setup a server in asia but I don't know if it would help a lot because it would apparently be laggy for people in europe or US.
That's not what Rufus is asking for, he's just saying that this fix helped on another game that is hosted on an Asian server so it might help other people in general too.
__________________
Reply With Quote
  #9  
Old 08-14-2009, 03:48 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Setup another server in US and put Zodiac on it :>

Preferably Chicago, I get 30ms pings there :3
__________________
Quote:

Last edited by fowlplay4; 08-14-2009 at 04:49 PM..
Reply With Quote
  #10  
Old 08-14-2009, 03:54 PM
Stephen Stephen is offline
Boom!
Stephen's Avatar
Join Date: May 2004
Location: San Francisco
Posts: 10,410
Stephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud ofStephen has much to be proud of
A server in North America would be pretty nice, especially since most popular serves are populated almost entirely by Americans.
__________________
Reply With Quote
  #11  
Old 08-14-2009, 04:19 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Stephen View Post
A server in North America would be pretty nice, especially since most popular serves are populated almost entirely by Americans.
I thought they did have servers hosted in North America? I remember Classic used to be hosted on a US server until it was changed to EU, not sure about the rest.
__________________
Reply With Quote
  #12  
Old 08-14-2009, 07:23 PM
cyan3 cyan3 is offline
Registered User
cyan3's Avatar
Join Date: Nov 2005
Location: England
Posts: 2,919
cyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant futurecyan3 has a brilliant future
Quote:
Originally Posted by fowlplay4 View Post
Setup another server in US and put Zodiac on it :>

Preferably Chicago, I get 30ms pings there :3
That would be fine for players in the US but what about people living in Europe? When I used ping on the server ip Zodiac is hosted on I had around 45 ms but when I used ping on the server Unholy Nations was on I got 150 ms.
Reply With Quote
  #13  
Old 08-14-2009, 07:39 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by cyan3 View Post
That would be fine for players in the US but what about people living in Europe?. When I used ping on the server ip Zodiac is hosted on I had around 45 ms but when I used ping on the server Unholy Nations was on I got 150 ms.
Well, there is no satisfying everyone with low pings. It should be located where the majority of the player base is from, unfortunately I don't where but it's probably slightly more NA than EU, if that's the case perhaps a server on the East Coast would be most appropriate.
__________________
Quote:
Reply With Quote
  #14  
Old 08-14-2009, 07:47 PM
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
Quote:
Originally Posted by Crimson2005 View Post
Here is my plan, I don't know how possible it is but maybe it could work.


I think this could make it a bit more fair when we are using serverside hit detections.

Edit: I didn't think the city of Godthåb would be feasible.
This sounds like the best solution to me.
__________________
Quote:
Originally Posted by Loriel View Post
Seriously, you have ****-all for content and you're not exactly pulling in new developer talent, angling for prestigious titles should be your last concern.
Reply With Quote
  #15  
Old 08-14-2009, 07:49 PM
Crono Crono is offline
:pluffy:
Join Date: Feb 2002
Location: Sweden
Posts: 20,000
Crono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond reputeCrono has a reputation beyond repute
Quote:
Originally Posted by Rufus View Post
This sounds like the best solution to me.
My god he's onto something!
__________________
Reply With Quote
Reply


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:42 AM.


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