You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Netplay owner option for turn-based games: the port whose input the next step uses, read from the sim. The other port's input is fed as neutral on both peers, so the player with the turn never waits for the network, and the other peer plays the turn back as it arrives instead of predicting and rolling it back. owner may return NOBODY for frames that use neither input (a countdown), which never wait either. Craft Ones on a 2-second round trip: the shooter plays every turn with 0 stalls.
Netplay heals a gap in the link: each input message carries got (how many of the peer's inputs arrived in a row) and inputs are resent from there, instead of only the last 8 frames. A socket that dropped for 3 seconds used to stall the match forever.
connectRelay and connectRelayNative reconnect a dropped socket to the same room and slot (status connecting meanwhile). The relay takes ?slot= for the slot a client had and ?client= so a new socket replaces one it still thinks is open, without the peer hearing that it left. Older relays still pair a returning client, into whichever slot is free.