mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-15 05:47:56 -07:00
5519efa66e
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. |
||
---|---|---|
.. | ||
Boot | ||
Config | ||
ConfigLoaders | ||
Debugger | ||
DSP | ||
FifoPlayer | ||
HLE | ||
HW | ||
IOS | ||
PowerPC | ||
ActionReplay.cpp | ||
ActionReplay.h | ||
Analytics.cpp | ||
Analytics.h | ||
ARDecrypt.cpp | ||
ARDecrypt.h | ||
BootManager.cpp | ||
BootManager.h | ||
CMakeLists.txt | ||
CommonTitles.h | ||
ConfigManager.cpp | ||
ConfigManager.h | ||
Core.cpp | ||
Core.h | ||
Core.vcxproj | ||
Core.vcxproj.filters | ||
CoreTiming.cpp | ||
CoreTiming.h | ||
DSPEmulator.cpp | ||
DSPEmulator.h | ||
GeckoCode.cpp | ||
GeckoCode.h | ||
GeckoCodeConfig.cpp | ||
GeckoCodeConfig.h | ||
Host.h | ||
HotkeyManager.cpp | ||
HotkeyManager.h | ||
MachineContext.h | ||
MemoryWatcher.cpp | ||
MemoryWatcher.h | ||
MemTools.cpp | ||
MemTools.h | ||
Movie.cpp | ||
Movie.h | ||
NetPlayClient.cpp | ||
NetPlayClient.h | ||
NetPlayProto.h | ||
NetPlayServer.cpp | ||
NetPlayServer.h | ||
PatchEngine.cpp | ||
PatchEngine.h | ||
State.cpp | ||
State.h | ||
SysConf.cpp | ||
SysConf.h | ||
TitleDatabase.cpp | ||
TitleDatabase.h | ||
WiiRoot.cpp | ||
WiiRoot.h | ||
WiiUtils.cpp | ||
WiiUtils.h |