dolphin/Source/Core
mimimi085181 8b7bfe6cf9 Netplay: Fix synchronization for the Wiinote netplay
The old implementation always polled the local 1st Wiimote and used that as input for the Wiimote that is mapped to the player. But the reporting mode for Wiimotes can be different, even when using the same extensions. So an input for Wiimote 1 with a data size 4 could be used for Wiimote 2, which actually requires data size 7 at that time for example.

The 2nd problem was that the code added a dummy input into the buffer, when the reporting mode changed. But when the data from the other player hasn't arrived yet, the data in the buffer is out of order. Well, i think this is the problem, i'm not 100% sure, because i don't fully understand how the buffer works. But on the other hand, i'm pretty sure this will just force sync the players on reporting mode changes, instead of allowing them to be apart.

Pros:
- No more desyncs caused by big bugs in the code.
- Can use different extensions for different players.

Cons:
- Higher latency, because instead of polling 1 controller per player at once, all controllers are polled in order, send to the other players, before the next is processed.
- Have to setup the Wiimote, which the player is going to use, instead of the 1st one.

Now, if the controller config could temporarily be overridden with the one from another slot, the 2nd problem could be fixed. But at the same time, we would lose the ability to use different extensions. (unless we hack around it somehow, or properly send the used extension to the other players)
2016-07-16 13:00:54 +02:00
..
AudioCommon Remove AddStereoSample function 2016-07-01 00:59:25 -04:00
Common Merge pull request #3958 from jloehr/Fix-SCMRevGen-MSBuild(x64) 2016-07-13 19:51:24 +02:00
Core Netplay: Fix synchronization for the Wiinote netplay 2016-07-16 13:00:54 +02:00
DiscIO Move DiscIO enums to a new file 2016-07-13 17:29:27 +02:00
DolphinQt2 DQt2: Warning window HiDPI fix. 2016-07-16 10:51:02 +10:00
DolphinWX Merge pull request #3737 from EmptyChaos/update-wx 2016-07-15 09:48:14 -04:00
InputCommon ControllerInterface: Make the ID assigning code common 2016-07-14 10:50:53 +02:00
UICommon portable.txt enables portable configuration on linux, README updated to 2016-07-04 19:39:10 +10:00
VideoBackends Merge pull request #3930 from RisingFog/split_video_dump_resolution 2016-06-27 22:39:19 -04:00
VideoCommon Use newer ffmpeg APIs to avoid deprecation warnings. 2016-07-10 21:36:18 -04:00
CMakeLists.txt [UI] Remove DolphinQt 2016-01-05 19:42:02 -06:00