dolphin/Source/Core/Core
Techjar 5519efa66e NetPlay host input authority mode
Currently, each player buffers their own inputs and sends them to the
host. The host then relays those inputs to everyone else. Every player
waits on inputs from all players to be buffered before continuing. What
this means is all clients run in lockstep, and the total latency of
inputs cannot be lower than the sum of the 2 highest client ping times
in the game (in 3+ player sessions with people across the world, the
latency can be very high).

Host input authority mode changes it so players no longer buffer their
own inputs, and only send them to the host. The host stores only the
most recent input received from a player. The host then sends inputs
for all pads at the SI poll interval, similar to the existing code. If
a player sends inputs to slowly, their last received input is simply
sent again. If they send too quickly, inputs are dropped. This means
that the host has full control over what inputs are actually read by
the game, hence the name of the mode. Also, because the rate at which
inputs are received by SI is decoupled from the rate at which players
are sending inputs, clients are no longer dependent on each other. They
only care what the host is doing. This means that they can set their
buffer individually based on their latency to the host, rather than the
highest latency between any 2 players, allowing someone with lower ping
to the host to have less latency than someone else.

This is a catch to this: as a necessity of how the host's input sending
works, the host has 0 latency. There isn't a good way to fix this, as
input delay is now solely dependent on the real latency to the host's
server. Having differing latency between players would be considered
unfair for competitive play, but for casual play we don't really care.
For this reason though, combined with the potential for a few inputs to
be dropped on a bad connection, the old mode will remain and this new
mode is entirely optional.
2018-08-26 17:10:23 -04:00
..
Boot BS2Emu: Don't do a DVDCopy when AppLdrMain returns 0 2018-08-02 01:30:25 -04:00
Config Merge pull request #7283 from Techjar/netplay-improve-settings-sync 2018-07-30 11:47:48 +02:00
ConfigLoaders NetPlay: Improve settings synchronization and UI 2018-07-26 17:23:04 -04:00
Debugger SymbolDB: Namespace code under the Common namespace 2018-05-27 18:01:40 -04:00
DSP Merge pull request #7152 from lioncash/dsp-interp 2018-06-25 01:42:42 +02:00
FifoPlayer FifoPlayer: Actually exit on 'Stop' in dualcore 2018-08-09 01:08:21 -04:00
HLE Common: Move host communication enum to Host.h 2018-05-28 14:34:59 -04:00
HW NetPlay host input authority mode 2018-08-26 17:10:23 -04:00
IOS BTEmu: Make WriteToEndpoint's reference parameter const 2018-06-22 20:59:00 -04:00
PowerPC Jit64: Update PC before checking for exceptions 2018-08-14 02:27:48 +02:00
ActionReplay.cpp ActionReplay: Use Common::BitCast instead of reinterpret_cast in Subtype_AddCode() 2018-06-20 16:38:30 -04:00
ActionReplay.h
Analytics.cpp Common/Random: Add convenience template for simple arithmetic values 2018-06-14 10:31:13 -04:00
Analytics.h
ARDecrypt.cpp
ARDecrypt.h
BootManager.cpp NetPlay host input authority mode 2018-08-26 17:10:23 -04:00
BootManager.h Core/BootManager: Remove unnecessary includes 2018-07-14 23:16:23 -04:00
CMakeLists.txt Wiimote Emulation: Add game-configurable shake/swing commands for the wiimote at three intensities 2018-07-07 00:49:47 -05:00
CommonTitles.h
ConfigManager.cpp ConfigManager: Remove m_FrameSkip 2018-08-09 10:31:02 +02:00
ConfigManager.h ConfigManager: Remove m_FrameSkip 2018-08-09 10:31:02 +02:00
Core.cpp Core: Namespace NetPlay utilities under the NetPlay namespace 2018-07-06 19:53:23 -04:00
Core.h WiimoteDevice: Make Callback_WiimoteInterruptChannel() accept its data as a u8* rather than void* 2018-06-20 16:04:10 -04:00
Core.vcxproj NetPlay save data synchronization 2018-07-19 18:09:20 -04:00
Core.vcxproj.filters NetPlay save data synchronization 2018-07-19 18:09:20 -04:00
CoreTiming.cpp
CoreTiming.h
DSPEmulator.cpp DSPEmulator: Default destructor in the cpp file 2018-05-29 07:54:39 -04:00
DSPEmulator.h DSPEmulator: Make the IsLLE() member function const-qualified 2018-05-29 17:45:07 -04:00
GeckoCode.cpp PowerPC: Move MMU-specifics from PowerPC.h to MMU.h 2018-05-17 19:18:55 -04:00
GeckoCode.h
GeckoCodeConfig.cpp Core/GeckoCodeConfig: Circumvent DDOS protection 2018-05-29 03:56:28 +02:00
GeckoCodeConfig.h
Host.h Common: Move host communication enum to Host.h 2018-05-28 14:34:59 -04:00
HotkeyManager.cpp Hotkeys: Add "Toggle USB Keyboard" hotkey 2018-08-02 12:55:30 +02:00
HotkeyManager.h Hotkeys: Add "Toggle USB Keyboard" hotkey 2018-08-02 12:55:30 +02:00
MachineContext.h
MemoryWatcher.cpp
MemoryWatcher.h
MemTools.cpp
MemTools.h
Movie.cpp NetPlay save data synchronization 2018-07-19 18:09:20 -04:00
Movie.h Core/PowerPC: Add option to disable branch following 2018-07-09 22:58:40 +02:00
NetPlayClient.cpp NetPlay host input authority mode 2018-08-26 17:10:23 -04:00
NetPlayClient.h NetPlay host input authority mode 2018-08-26 17:10:23 -04:00
NetPlayProto.h NetPlay host input authority mode 2018-08-26 17:10:23 -04:00
NetPlayServer.cpp NetPlay host input authority mode 2018-08-26 17:10:23 -04:00
NetPlayServer.h NetPlay host input authority mode 2018-08-26 17:10:23 -04:00
PatchEngine.cpp PowerPC: Move MMU-specifics from PowerPC.h to MMU.h 2018-05-17 19:18:55 -04:00
PatchEngine.h PatchEngine: Make PatchType an enum class 2018-05-13 15:46:51 -04:00
State.cpp Only show savestate version mismatch OSD message when relevant 2018-06-19 16:15:18 +02:00
State.h
SysConf.cpp FS: Add a struct for modes 2018-06-03 20:45:35 +02:00
SysConf.h
TitleDatabase.cpp Don't store custom names from TitleDatabase in GameFileCache 2018-06-04 07:45:22 +02:00
TitleDatabase.h Don't store custom names from TitleDatabase in GameFileCache 2018-06-04 07:45:22 +02:00
WiiRoot.cpp NetPlay save data synchronization 2018-07-19 18:09:20 -04:00
WiiRoot.h NetPlay save data synchronization 2018-07-19 18:09:20 -04:00
WiiUtils.cpp
WiiUtils.h