-
Notifications
You must be signed in to change notification settings - Fork 4
Description
If a player disconnects for some reason, we currently kill the game session due to its stateful nature.
It's worth investigating the feasibility of suspending and resuming a session. For instance, some games allow the master GB to pause the game.
With this in mind, one idea is to send the bytes necessary for pausing and unpausing to each client on game start. Then, both clients could pause the game on disconnect and unpause on reconnect. We could combine this with auto wifi reconnect (#4).
This may be more trouble than it's worth and won't work in all situations (e.g., both GBs exchanging a large buffer). It also assumes that a disconnected player doesn't restart their game (although maybe the server could detect this). It could help a lot with turn based games though.