mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-19 16:59:13 +00:00
Simplify and improve.
Note - I removed a SleepCurrentThread(1) the patch added which seemed to be unrelated to the actual job at hand. If there was a real need for it (which sounds like it would be an enet-related bug - enet_host_service is supposed to *sleep*), that needs to be dealt with...
This commit is contained in:
parent
04ca54623c
commit
f2631a835e
5 changed files with 46 additions and 42 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <queue>
|
||||
#include <sstream>
|
||||
#include <thread>
|
||||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
#include <SFML/Network/Packet.hpp>
|
||||
#include "Common/Timer.h"
|
||||
|
@ -99,6 +100,9 @@ private:
|
|||
|
||||
std::map<PlayerId, Client> m_players;
|
||||
|
||||
std::unordered_map<u32, std::vector<std::pair<PlayerId, u64>>> m_timebase_by_frame;
|
||||
bool m_desync_detected;
|
||||
|
||||
struct
|
||||
{
|
||||
std::recursive_mutex game;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue