[mR] Forums
Right now
 
your local time
HL2DM players
0/ 64
rp_revengebay_v1JoinLive
Discord
29online
0 in voiceOpen
Forum
0members here
nobody signed in
Builds saved
29,665
by 1,176 builders since 2008Browse

How to reduce lag

Started by Eli, 02-28-2010, 08:52 AM15 replies346 viewsThreaded Mode
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Blaze I am a loli Offline 03-01-2010, 12:36 AM #11
Lag varys... all depends on your ISP... your internet connection... Server host...server location.... server type... Latnecy....


You can only fix it so much
Posts: 235 Joined: Jan 2010 Reputation: 1
Michael The Judge Offline 03-01-2010, 09:36 AM #12
That sounds like a very interesting solution to the lag problems Random, and I'm tempted to try it to improve my own online gaming, but our home network tends to have two or three people on it at any one time, would it affect them negatively? Could I royally screw my computer if I did it wrong?
Posts: 1,976 Joined: Jan 2010 Reputation: 30
Rand0mNumbers Needs dusting off Offline 03-01-2010, 09:50 AM #13
What Nagle's Algorithm does is prevent your machine from sending really small amounts of data and, thus, reducing traffic. There is an overhead to data your machine transmits and that is 40Bytes per message (assuming TCP and IP). If you only have 1Byte to send and the server hasn't confirmed it received your previous transmission, Nagle's Algorithm will hold that single Byte until you have more stuff to send or the server confirms your previous transmission. This prevents you from sending a 41Byte packet with 40Bytes of overhead and 1Byte of actual data.

There was a good example I found yesterday, but can't recall or locate, but it goes like this:
Let's say you're writing a letter to someone. Nagle's Algorithm keeps you from writing a character, putting it in an envelope, and mailing it individually. It makes you wait until you've finished writing the letter before mailing it.

The way Ethernet works is it waits until your network has nothing on it before it transmits. So, if you disable Nagle's algorithm, there will be more traffic on your network which could reduce its performance when you include those other people. That said, Nagle's Algorithm already conflicts with other forms of traffic control on the network. NOTE: As stated on the website, online gaming requires everything to come and go as quickly as possible, Nagle's can prevent that from happening. I'm not saying it will always keep that from happening, but the delays associated with waiting for a server reply or for more data to send can have a negative impact.

The fix I posted messes with the Registry. So, as with all things like that, you can royally screw your machine if you do it wrong. If you want to try it, make a backup of your registry, apply the fix, and see if the other people on your network notice a difference.
(This post was last modified: 03-01-2010, 09:53 AM by Rand0mNumbers.)
Posts: 50 Joined: Jan 2010 Reputation: 2
Michael The Judge Offline 03-01-2010, 09:58 AM #14
hmm thanks. Is there a reason this sort of thing isn't listed as an option in your network configuration? it'd make sense to me to have an advanced option for disabling it for people with decent connections and Online gaming habits.
Posts: 1,976 Joined: Jan 2010 Reputation: 30
overkillfish Unregistered 03-01-2010, 10:05 AM #15
i use to get it a looooonnnnnggggg time ago in te server it jsut wore off u can try waiting but make it a bind or whatver to say that idk i wore of for me maybe it do same to u maybe just maybe but i just restarted steam have u tryed that
Rand0mNumbers Needs dusting off Offline 03-01-2010, 11:20 AM #16
There is an option to disable Nagle's Algorithm, but it must be coded into an application. Nagle's only causes problems with time-sensitive/streaming traffic (ex: online games, multimedia applications, remote desktop [think mouse movements], etc). Other than that, it is a decent algorithm.
Posts: 50 Joined: Jan 2010 Reputation: 2
Users browsing this thread: 1 Guest(s)