Official RPG Codex Discord Server

  1. Welcome to rpgcodex.net, a site dedicated to discussing computer based role-playing games in a free and open fashion. We're less strict than other forums, but please refer to the rules.

    "This message is awaiting moderator approval": All new users must pass through our moderation queue before they will be able to post normally. Until your account has "passed" your posts will only be visible to yourself (and moderators) until they are approved. Give us a week to get around to approving / deleting / ignoring your mundane opinion on crap before hassling us about it. Once you have passed the moderation period (think of it as a test), you will be able to post normally, just like all the other retards.
    Dismiss Notice

Increase online gaming performance by tinkering with Ethernet card driver.

Discussion in 'General Gaming' started by shihonage, Nov 26, 2013.

  1. shihonage Subscribe to my OnlyFans Patron

    shihonage
    Joined:
    Jan 10, 2008
    Messages:
    7,157
    Location:
    location, location
    Bubbles In Memoria
    For months, I've been driven nuts by certain behavior of Tribes: Ascend. When using fast-firing weapons, like machine guns, it seemed like my bullets, despite having 31ms ping, would clump together, and not quite fire off at the time they were fired.

    Doing deeper research, I came to the conclusion that many Ethernet adapters come with features enabled by default which mess with Windows networking stack. This is particularly betrayed by optimizations instructions for various realtime daytrading software, which relies on latency and minimization of errors. Those instructions tell you to turn a whole lot of that stuff off.

    Not only are many implementations of these features flawed and differ from driver to driver, and should be turned off for that reason alone... but they are harmful even when implemented correctly.

    Moreso, it turns out that a number of these features are controversial and some were even acknowledged by Microsoft to have questionable usability.

    I disabled all of this stuff and now I no longer feel like other people in the game have mysterious godlike evasion powers.

    In short, if you want the optimal online gaming experience, go to Advanced tab of your Ethernet adapter settings, and disable the following:

    * Interrupt Moderation - clumps packets together and sends them as a batch - the main offender
    * Flow Control - sounds counterintuitive to disable it, but it messes with existing flow control in Windows networking stack
    * Receive Side Scaling - also messes with Windows networking stack
    * [anything goes here] Checksum Offload - supposed to speed up performance by offloading TCP/UDP checksumming to hardware; in reality does nothing for an average desktop PC except interfere with Windows networking stack
    * Green Ethernet - performance-eating eco garbage

    Try it and see! Less rubberbanding zombies in Left4Dead, more headshots in your favorite FPS, etc etc.

    Also, if you play a MMORPG and want faster responsiveness, you need to disable TCP/IP Nagle algorithm in Windows. There are multiple guides about it though.
     
    • Brofist Brofist x 39
    ^ Top  
  2. Interesting, thanks for this.
     
    ^ Top  
  3. Berekän #11231 Patron

    Berekän
    Joined:
    Sep 2, 2009
    Messages:
    3,027
    Gonna try this, thanks for the tips
     
    ^ Top  
  4. funkadelik Arcane

    funkadelik
    Joined:
    Jul 30, 2010
    Messages:
    1,496
    I just changed the settings, I will let you know if I can tell a difference.
     
    ^ Top  
  5. JudasIscariot Arcane Patron

    JudasIscariot
    Joined:
    Aug 19, 2009
    Messages:
    2,001
    Location:
    IV Republic of Polandia
    Serpent in the Staglands Codex USB, 2014
    Sauce? Just asking out of curiosity and to pass on to some friends who play MMOs.
     
    ^ Top  
  6. toroid Arcane

    toroid
    Joined:
    Apr 15, 2005
    Messages:
    679
    Neat.

    I also have an 'ARP Offload', three different 'Large Send Offload', and a 'NS Offload' in addition to the three different '[anything goes here] Checksum Offload' entries. What's up with those?

    (My ethernet adapter is a Broadcom Netlink.)
     
    ^ Top  
  7. raw Arcane Patron

    raw
    Joined:
    Nov 1, 2008
    Messages:
    17,529
    PC RPG Website of the Year, 2015
    Good post, would brofist again. Could be improved by adding sources/explanations though.
     
    • Brofist Brofist x 1
    ^ Top  
  8. The Brazilian Slaughter Arcane

    The Brazilian Slaughter
    Joined:
    May 11, 2007
    Messages:
    1,873,650
    Location:
    Belém do Pará
    Very good Scienmajickery, Shihonage, needs moar "before" and "after" comparisons, through.

    I might be getting me a decent internet next week, so I may test your scienspells.
     
    ^ Top  
  9. shihonage Subscribe to my OnlyFans Patron

    shihonage
    Joined:
    Jan 10, 2008
    Messages:
    7,157
    Location:
    location, location
    Bubbles In Memoria
    It's hard to do "before and after" except for posting videos in which the difference can only be noticed by how much more I hit people with bullets. That's a lot of work.

    Unfortunately this information is in bits and pieces everywhere. Yes, there's a bit of "sciencemajickery" involved, but...

    http://support.microsoft.com/kb/2643970 <- while they recommend enabling RSS on newer OSes, there's a lot of talk of troubleshooting network drivers by disabling their features.
    http://ttcshelbyville.wordpress.com...cie-gbe-family-controller-performance-issues/ <- like this common card which has dramatic performance differences between driver versions unless you disable everything

    Also,

    https://www.tradingtechnologies.com/en/support/knowledge-base/2/2735/
    http://virtualthreads.blogspot.com/2006/02/beware-ethernet-flow-control.html

    http://en.wikipedia.org/wiki/Nagle's_algorithm

    Nagle algorithm has been disabled in WoW specifically since 2007. However one may want to disable it in the system in case their favorite MMO relies on default settings instead of using TCP_NODELAY flag when addressing the stack.

    Before dropping P2P multiplayer from Dead Colony, I improved its speed by recompiling SDL_net.dll with TCP_NODELAY (which disables Nagle).

    ARP offload is related to sleep state. If you use the feature that nobody uses where your computer responds to packets in sleep state, then keep that on.

    NS offload is similar in nature. Responds to network discovery when computer is asleep. I don't know if either setting would affect gaming performance.

    All "Large Send" offloads should be turned to off as they interfere with autotuning functions in Windows networking stack. I trust what Windows is doing (and it has a much larger tester base) more than a random NIC manufacturer with crazy ideas and questionable QA.

    Many of those features would improve performance on a busy network server, but not on a desktop machine at home. They're not there to benefit gaming latency, i.e. a situation where a small packet load is being sent and received with minimum interference.
     
    Last edited: Nov 26, 2013
    ^ Top  
  10. Sranchammer Arcane

    Sranchammer
    Joined:
    Dec 29, 2011
    Messages:
    18,613
    Location:
    Former Confederate States of America

    I'm Ridin' with Biden I'm Ridin' with Biden
    Has this been peer-reviewed?
     
    • Brofist Brofist x 2
    ^ Top  
  11. shihonage Subscribe to my OnlyFans Patron

    shihonage
    Joined:
    Jan 10, 2008
    Messages:
    7,157
    Location:
    location, location
    Bubbles In Memoria
    Chances are, disabling Interrupt Moderation alone would make a difference. What that "feature" does is well-documented. This is also the reason why some "gaming NICs" may actually provide better performance - they insist on the rule "1 packet, 1 interrupt", the rule which is ignored by default by most network cards.
     
    ^ Top  
  12. tuluse Prestigious Gentleman Arcane

    tuluse
    Joined:
    Jul 20, 2008
    Messages:
    11,400
    Serpent in the Staglands Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Shadorwun: Hong Kong
    Fun facts: Modern network chips don't really do any hardware acceleration*. Since CPUs got so fast, they just offload the work to the CPU anyways.

    *This is for cheap integrated chips. If you spend money, you can get one that does hardware acceleration. This was the big feature for that company trying to sell NICs to gamers, I can't remember the name now.
     
    ^ Top  
  13. Sergiu64 Arcane Sad Loser

    Sergiu64
    Joined:
    Jun 8, 2010
    Messages:
    2,240
    Location:
    Sic semper tyrannis.

    I'm Ridin' with Biden I'm Ridin' with Biden
    Kinda doubt any of this stuff makes a difference. Usually any lag you see is much more the fault of the server then your PC.
     
    ^ Top  
  14. Morgoth Arcane Patron

    Morgoth
    Joined:
    Nov 30, 2003
    Messages:
    29,287
    Location:
    Apple Strudel Food Inspection GmbH
    This has improved my ping by ~10ms.

    shihonage deserves the prestigious "Codexian of the Day" award.
     
    • Brofist Brofist x 1
    ^ Top  
  15. shihonage Subscribe to my OnlyFans Patron

    shihonage
    Joined:
    Jan 10, 2008
    Messages:
    7,157
    Location:
    location, location
    Bubbles In Memoria
    Morgoth While I'd be glad to take the credit, this is likely an isolated case, i.e. really bad network driver. It's not really about ping, but responsiveness. My ping in Tribes remained the same, but the ability to hit people has improved. Especially with X1 LMG, the fast-firing juggernaut weapon.

    Sergiu64: It's not the same as conventional lag. It is not "delay", but grouping or needless duplication/errors in transmission of packets. Your ping will remain same on average, but processing each packet immediately instead of queuing them (and many adapters have different degrees of Interrupt Moderation too), makes a difference in responsiveness.
     
    ^ Top  
  16. shihonage Subscribe to my OnlyFans Patron

    shihonage
    Joined:
    Jan 10, 2008
    Messages:
    7,157
    Location:
    location, location
    Bubbles In Memoria
    Yeah, but the offloading to CPU via "network adapter code" during "network adapter processing stage" is different from letting Windows networking stack handle it. They may have replaced hardware with software, but it is still their own software second-guessing Windows functionality.
     
    ^ Top  
  17. tuluse Prestigious Gentleman Arcane

    tuluse
    Joined:
    Jul 20, 2008
    Messages:
    11,400
    Serpent in the Staglands Divinity: Original Sin Project: Eternity Torment: Tides of Numenera Shadorwun: Hong Kong
    I was just trying to point out hardware offloading isn't real hardware offloading. So it's not even really doing what it claims to.
     
    • Brofist Brofist x 1
    ^ Top  
  18. shihonage Subscribe to my OnlyFans Patron

    shihonage
    Joined:
    Jan 10, 2008
    Messages:
    7,157
    Location:
    location, location
    Bubbles In Memoria
    It is offloading these tasks from Windows networking stack to its own routines, which the network manufacturer perceives to be faster/more efficient. Whether those routines are fully, partially or non-hardware-assisted, the end result is the same... needless interception of Windows functionality by questionable code.
     
    ^ Top  
  19. Raghar Arcane

    Raghar
    Joined:
    Jul 16, 2009
    Messages:
    13,357
    DPC latency is horrible stuff. A proper HW NIC, and proper sound cards helps immensely.
     
    ^ Top  
  20. Coyote Prestigious Gentleman Arcane

    Coyote
    Joined:
    Jan 15, 2009
    Messages:
    1,149
    The title of this thread reminds me of those ads like "Lose 5 pounds a week with this one simple trick" and "Mom discovers youth elixir using common household ingredients".

    Maybe they were onto something all along, too...
     
    • Brofist Brofist x 6
    ^ Top  
  21. Sensuki Arcane Cuck

    Sensuki
    Joined:
    Oct 26, 2012
    Messages:
    9,622
    Location:
    Australia
    Codex 2014 Serpent in the Staglands Shadorwun: Hong Kong A Beautifully Desolate Campaign
    Seems to do the trick for me with CoD4, bullets don't go through people's heads as much when they're moving sideways.
     
    • Brofist Brofist x 1
    ^ Top  
  22. Clockwork Knight Arcane

    Clockwork Knight
    Joined:
    May 6, 2009
    Messages:
    1,872,700
    Location:
    Glass Fields, Ruins of Old Iran
    I did some of the changes, couldn't find "Receive Side Scaling" or "Green Ethernet" on my adapter though. Watching thread.
     
    ^ Top  
  23. Burning Bridges Enviado de meu SM-G3502T usando Tapatalk

    Burning Bridges
    Joined:
    Apr 21, 2006
    Messages:
    26,446
    Location:
    Tampon Bay
    ^ Top  
  24. Sensuki Arcane Cuck

    Sensuki
    Joined:
    Oct 26, 2012
    Messages:
    9,622
    Location:
    Australia
    Codex 2014 Serpent in the Staglands Shadorwun: Hong Kong A Beautifully Desolate Campaign
    you need to install the latest drivers to get those settings, if you have a realtek card.
     
    ^ Top  

As an Amazon Associate, rpgcodex.net earns from qualifying purchases.