Emulator Issues #8681
closedNetplay traversal disconnect pauses emulation and possible lag on unstable connection to traversal server
0%
Description
It seems as though, after creating a netplay connection, the connection with the traversal server is still up. I figure this is probably to allow other people to connect when emulation is in a stopped state.
To explicit stately my issue, I've been connecting with the Smashladder traversal server. If the connection with the traversal server goes down, Dolphin will pause emulation with an error pop up. I can't remember exactly what it says, but it might have said "Connection with the traversal server has been lost." This message is probably better in a passive state in the netplay window.
I also have a second question, is the connection with the traversal server on a separate thread? I've been having a suspicion that it's synchronized with the emulation, and if there's a slow down with the traversal server, there's slow down in-game. I've been pinging smashladder's traversal server and have noticed a good amount of packet loss (~8%) and I'm hoping that it in no way affects my connection with whomever I'm playing.
Edit: Unless I'm reading wrong, it seems to continue to ping the traversal server on the same thread as the netplayclient.
https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/NetPlayClient.cpp#L526
https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Common/TraversalClient.cpp#L250
It seems both would be related.