Jump to content

Optimizing Minecraft Client Latency


MrJoshy
 Share

Recommended Posts

Hello there, citizens of Lord of the Craft! This will be perhaps one of my few helpful (somewhat) forum posts for all of your wonderful, welcoming eyes to see.

I come to you after a night of long tears, drawn conclusions, hypothetical mental ward trips, and a nearly broken computer monitor to present a little tip!

Now, assuming that you’re on any of these:

1. Windows XP.
2. Windows Vista.
3. Windows 7.
4. Windows 8.

Then this guide might just help you! Now, the guide in itself is to deduce that of the latency of your Minecraft client’s packets sent to the server of LotC (or any other) that you play on.

Notes:
1. This is not going to reduce the ping of your gaming experience; for that is your ISP’s jurisdiction, and certainly not mine. Minecraft works off of TCP packets, just as most other games that are online.

2. You cannot, and will not, blame me for any mistaken steps; for I have made these as clear as I can. If you need help, let me know via a comment, and I’ll do my best to respond.

 

3. You will need administrator permissions on your Windows account for this.

Anyway, let’s get started.

~~~

1. Open up the Windows Run menu (Windows Key+R) and type “regedit” without the quotation marks.
a7bf9177ec.png



Under here you will find a series of different folders that should appear as a list.

2. Go to the path of "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\Interfaces" underneath these series of folders. Make sure that this is one hundred percent accurate.

3. For each folder underneath “Interface” we’re going to want to make steps four and five repeat.

4. Create two new DWORD registry keys 73fc7e550a.png one labeled “TcpAckFrequency” and another labeled “TCPNoDelay.” Make sure that this is done underneath each folder of Interfaces, or this will not work.

(Note: Thanks to Freya for reminding me; if you're on a 64 bit Windows system, you need to make "TcpAckFrequency" a "QWORD" instead of the DWORD for "TCPNoDelay." Everything from there will be the same; make it underneath all the folders, just TcpAckFrequency made QWORD if you're on a 64 bit OS.)

5. Double click on each new key and change the value from “0” to “1.” (Base hexadecimal.) bf0f204da2.png

6. Confirm that you have done steps 4 and 5 correctly, and underneath each folder of Interfaces. If you have two, do it under two. If you have fourty, do it underneath all fourty.

7. Restart your computer: This is very important, as the registry edits will not take place until Windows reloads. If you ever wonder why you’ve been asked by a program to restart after installing, this is why.

~~~

More notes.

1. If you wish to uninstall this, go to the same path and find these same DWORD registry keys, right click, and delete.

2. This will not affect your command prompt ping. CMD pings use a packet called ICMP, and this only affects TCP. What it does is actually moves your in game latency closer to that actual ping that your computer wants/is able to hand.  You can have a ping of 20, but a latency of 80.

~~~

If you notice anything different or don't, comment!

Link to post
Share on other sites

You should probably warn people before telling them to go modify their registry :p it can go horribly, horribly wrong!

 

Anyways yeah this is referred to as Nagle's Algorithm and isn't really effective now that broadband is commonplace, so it's a good idea to disable it. I suggest backing up your registry just in case though.

 

This is how it works (I believe):

 

Before:

Packet A goes to Server
Server Gets Packet A
 Packet B queued for sending
 Packet C queued for sending
Server Acknowledges Packet A was received
Packet B and C are sent

After:
Packet A Goes to Sever
Server Gets Packet A
Packet B Goes to Server
Packet C Goes to Server
Server Acknowledges Packet A was received
Server Acknowledges Packet B was received
Server Acknowledges Packet C was received

 

Can speed up games a little, although you probably won't notice any difference when connecting to servers within your own country. It helps a lot for european players on US games, and vice versa though.

 

Additionally, if you're running a 64 bit OS, you need to use QWORD for TcpAckFrequency but DWORD for TCPNoDelay.

Link to post
Share on other sites

Yus.

Aye, this is correct. Listen to him if you're on a 64 bit OS regarding the QWORD, though those that are on slower networks should notice a minor difference in some aspects of gameplay. Not meant to say "Now my ping is 12 from 200," but instead to help even out some Windows network setups that it has there by default. Thanks for correcting me.

Link to post
Share on other sites

See, I'd try this. Except I don't want my laptop to explode.

Link to post
Share on other sites

 

See, I'd try this. Except I don't want my laptop to explode.

 

I'm also tempted to try this too... maybe in the near future, but for now I'm sorta scared. 

Looks interesting though, has anyone benefited from this yet?

 

I'll keep an eye on this topic, thanks.

 

Link to post
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.



×
×
  • Create New...