User:P.i./Lag Guide: Difference between revisions

From SmashWiki, the Super Smash Bros. wiki
Jump to navigationJump to search
(Overhaul)
Tag: Mobile edit
(Tweaks)
Tag: Mobile edit
 
(3 intermediate revisions by 2 users not shown)
Line 3: Line 3:
==Terms==
==Terms==
<!--TODO: split these into their own article?-->
<!--TODO: split these into their own article?-->
'''Latency''', also known as '''lag''', is the delay between player input and display output. It's typically measured in milliseconds (ms) or [[frames]] (~16 ms).
'''Latency''', also known as '''lag''', is the delay between player input and display output. It's typically measured in milliseconds (ms) or [[frames]] (~16 ms). It commonly ranges from close to zero (playing offline on a CRT) to 200 ms (playing online with someone on the other side of the world). '''Ping time''' refers specifically to network latency.


'''Jitter''' is lag variability. Even if the average latency is low, occasional connection hiccups manifests as '''lag spikes'''.
'''Jitter''' is lag variability. Even if the average latency is low, occasional connection hiccups manifests as '''lag spikes'''.
Line 29: Line 29:
*[https://en-americas-support.nintendo.com/app/answers/detail/a_id/1676/kw/wii%20lan%20adapter Nintendo Support: How to Set up a Wired Internet Connection] (Wii U)
*[https://en-americas-support.nintendo.com/app/answers/detail/a_id/1676/kw/wii%20lan%20adapter Nintendo Support: How to Set up a Wired Internet Connection] (Wii U)
*[https://en-americas-support.nintendo.com/app/answers/detail/a_id/22374/~/how-to-connect-to-the-internet-using-a-wired-connection Nintendo Support: How to Connect to the Internet Using a Wired Connection] (Switch)
*[https://en-americas-support.nintendo.com/app/answers/detail/a_id/22374/~/how-to-connect-to-the-internet-using-a-wired-connection Nintendo Support: How to Connect to the Internet Using a Wired Connection] (Switch)
For the Nintendo Switch, the OLED Model Dock has a LAN port built-in, which is also compatible with the original Switch.<ref>[https://www.nintendolife.com/news/2021/07/nintendos_switch_oled_dock_can_be_purchased_separately Nintendo's Switch OLED Dock Can Be Purchased Separately - Nintendo Life]</ref>
*[https://store.nintendo.com/dock-oled-model-white-116471.html Dock - OLED Model - White] (Official, Nintendo Store)
*[https://store.nintendo.com/dock-oled-model-black-116470.html Dock - OLED Model - Black] (Official, Nintendo Store)


==Router==
==Router==
Line 37: Line 41:


==Game-specific techniques==
==Game-specific techniques==
===[[Super Smash Bros. Melee]]===
Use [[Slippi]], which has [[rollback netcode]], which is able to hide a degree of network latency.
===[[Super Smash Bros. Brawl]]===
===[[Super Smash Bros. Brawl]]===
This is a [[Gecko code]] that eliminates zero to two frames of [[input lag]] that the game has built-in (even offline).{{fact}}
Playing Brawl on [[Dolphin]] netplay has significantly less lag than [[Nintendo WFC]] (including [[Wiimmfi]]), over the same connection.
 
This is a [[Gecko code]] that eliminates zero to two frames of [[input lag]] that the game has built-in (even offline).{{fact}} This code isn't used on Dolphin, but it can put WFC on slightly more even footing.
  Controller Input Lag Fix [Magus]
  Controller Input Lag Fix [Magus]
  C202AD8C 00000002
  C202AD8C 00000002
  7C630214 3863FBFC
  7C630214 3863FBFC
  60000000 00000000
  60000000 00000000
===[[Dolphin]] (Melee and Brawl)===
In the emulator [[Dolphin]], you need to set the "Minimum buffer" manually. It should be set to approximately ping (in ms) / 8. Setting it too high causes unnecessary lag, whereas setting it too low causes lag spikes (uneven framerate).


==Troubleshooting==
==Troubleshooting==
A long-distance connection (e.g. between America and Europe) will necessarily have high latency due to the {{s|wikipedia|speed of light}}. Latency can also be caused by {{s|wikipedia|buffer bloat}}.
First, try checking your internet connection with a [https://www.meter.net/ping-test/ ping test]. Details on ping testing by Brawl Bois member Four Sword:
 
Jitter can be caused by Wi-Fi (wireless interference), sharing an internet with other people, hardware problems, or problems with your ISP or specific internet routes ({{s|wikipedia|packet loss}}).
 
Check your internet connection with a [https://www.meter.net/ping-test/ ping test]. Details on ping testing by Brawl Bois member Four Sword:
<blockquote>
<blockquote>
Please try several tests, or on several servers (one close to your opponent)  
Please try several tests, or on several servers (one close to your opponent)  
Line 58: Line 66:
High jitter/ping might be caused by your internal network which you can exercise control over, or be caused by your ISP's network, which you have less control over.  
High jitter/ping might be caused by your internal network which you can exercise control over, or be caused by your ISP's network, which you have less control over.  
</blockquote>
</blockquote>
A long-distance connection will necessarily have some latency due to the {{s|wikipedia|speed of light}}. From east coast U.S. to Europe, or from east coast U.S. to west coast, about 100 ms ping time is standard and can't be fixed. Further distances will be even worse. The only way to reduce this is by playing people closer by.
Latency can also be caused by {{s|wikipedia|buffer bloat}}.
Jitter can be caused by Wi-Fi (wireless interference), sharing an internet with other people (without Quality of Service, see above), hardware problems, or problems with your ISP or specific internet routes ({{s|wikipedia|packet loss}}).
Sometimes if the game is running choppy it is due to your computer not being fast enough (in Slippi or Dolphin) or mods or codes slowing things down, rather than the network. Try testing offline or without mods. Try reducing the graphics settings in Dolphin, or using [[Diet Melee]] for Melee.
If you have one, turn off your {{s|wikipedia|VPN}}. Playing a realtime game through a VPN is never a good idea. If you can't connect without a VPN, you may need to [https://www.wikihow.com/Set-Up-Port-Forwarding-on-a-Router turn on port forwarding or DMZ on your router].


==See also==
==See also==
*[[Input lag]]
*[[Input lag]]
*[[Netplay]]
*[[Netplay]]
*[[Wi-Fi lag]]
*[[Frame delay]]
==References==
{{reflist}}

Latest revision as of 20:01, February 3, 2022

This guide explains how to minimize lag when playing Smash games, both online and offline.

Terms[edit]

Latency, also known as lag, is the delay between player input and display output. It's typically measured in milliseconds (ms) or frames (~16 ms). It commonly ranges from close to zero (playing offline on a CRT) to 200 ms (playing online with someone on the other side of the world). Ping time refers specifically to network latency.

Jitter is lag variability. Even if the average latency is low, occasional connection hiccups manifests as lag spikes.

A connection can be laggy but smooth (high latency, low jitter) or mostly good but with bad lag spikes (low latency, high jitter). Usually jitter makes games unplayable more quickly than steady lag.

Display lag and input lag[edit]

The most common source of lag for offline play is from the television or monitor. For older Smash games, it might be easiest to use a CRT TV. On modern flat-screen TVs, go into the TV's menu and turn on "Game Mode" and turn off all of the post-processing effects (sharpening, etc.). Some flat-screen monitors, especially large ones,[citation needed] simply can't achieve low latency.

Some video adapters (e.g. composite to digital) also have significant lag.[clarification needed]

Some controller adapters for using a GameCube controller on a PC have more lag than others, although it's usually very small (significantly less than a frame) either way.

Wired controllers might have less lag, jitter, or other misbehavior than wireless ones.

Wired connection[edit]

Wireless connections are more susceptible to noise, which results in lag spikes.

To use a wired connection on Nintendo Wii, Wii U , or Switch, you'll need an adapter. Make sure to get an adapter that advertises Wii/WiiU/Switch support, as common PC adapters usually won't work.

To configure a wired LAN adapter:

For the Nintendo Switch, the OLED Model Dock has a LAN port built-in, which is also compatible with the original Switch.[1]

Router[edit]

If you share a connection with other people or devices, get a high-quality router (TBD) and configure Quality of Service (QoS). Note that on some low-end routers (including Linksys[citation needed]), turning on QoS can actually make performance worse.

Modem[edit]

Some defective cable modems actually add significant amounts of latency or jitter. See the list here.

Game-specific techniques[edit]

Super Smash Bros. Melee[edit]

Use Slippi, which has rollback netcode, which is able to hide a degree of network latency.

Super Smash Bros. Brawl[edit]

Playing Brawl on Dolphin netplay has significantly less lag than Nintendo WFC (including Wiimmfi), over the same connection.

This is a Gecko code that eliminates zero to two frames of input lag that the game has built-in (even offline).[citation needed] This code isn't used on Dolphin, but it can put WFC on slightly more even footing.

Controller Input Lag Fix [Magus]
C202AD8C 00000002
7C630214 3863FBFC
60000000 00000000

Dolphin (Melee and Brawl)[edit]

In the emulator Dolphin, you need to set the "Minimum buffer" manually. It should be set to approximately ping (in ms) / 8. Setting it too high causes unnecessary lag, whereas setting it too low causes lag spikes (uneven framerate).

Troubleshooting[edit]

First, try checking your internet connection with a ping test. Details on ping testing by Brawl Bois member Four Sword:

Please try several tests, or on several servers (one close to your opponent) before making a conclusion whose net (or both) is causing issues.

We recommend using a wired ethernet connection due to the inherent jitter wi-fi causes.

High jitter/ping might be caused by your internal network which you can exercise control over, or be caused by your ISP's network, which you have less control over.

A long-distance connection will necessarily have some latency due to the speed of light. From east coast U.S. to Europe, or from east coast U.S. to west coast, about 100 ms ping time is standard and can't be fixed. Further distances will be even worse. The only way to reduce this is by playing people closer by.

Latency can also be caused by buffer bloat.

Jitter can be caused by Wi-Fi (wireless interference), sharing an internet with other people (without Quality of Service, see above), hardware problems, or problems with your ISP or specific internet routes (packet loss).

Sometimes if the game is running choppy it is due to your computer not being fast enough (in Slippi or Dolphin) or mods or codes slowing things down, rather than the network. Try testing offline or without mods. Try reducing the graphics settings in Dolphin, or using Diet Melee for Melee.

If you have one, turn off your VPN. Playing a realtime game through a VPN is never a good idea. If you can't connect without a VPN, you may need to turn on port forwarding or DMZ on your router.

See also[edit]

References[edit]