[0.11.1][MP] Game Hangs
Posted: Mon Nov 03, 2014 3:36 am
So a friend and I have been playing some multiplayer, and everything is working surprisingly well. The only issue we've come across (Other than some infrequent stuttering, but that seems like connection issues) is the following:
Sometimes, seemingly always right after an autosave finishes, both the host and all clients' games will freeze. Movement and inventory don't work, but the hotbar and 'pause menu' still do. In the hotbar, hovering on icons will show the usual highlighted effect, and hovering over an item in the hotbar will bring up the tooltip. The host (and clients) can save the game, but the host cannot exit. This leads me to believe that the world has just stopped ticking, as parts of the game still continue to work. Rarely, the problem can be fixed by the clients disconnecting, and then re-connecting. Most of the time the problem is solved by the host forcibly closing their game. Every time that this happened, it was within 3 seconds after an autosave has completed on the host (This means no progress is lost!). Running on a lower latency (<50 ms, as opposed to <200 ms normally) connection seems to reduce the frequency of the problem, but does not mitigate it completely.
What I think is happening:
The autosave causes the host's game to slow down temporarily, causing some delay. Maybe the client tries to get ahead of the host, and something locks up.
Other than that, everything's working well. Thank you very much for the amazing work on multiplayer!
Sometimes, seemingly always right after an autosave finishes, both the host and all clients' games will freeze. Movement and inventory don't work, but the hotbar and 'pause menu' still do. In the hotbar, hovering on icons will show the usual highlighted effect, and hovering over an item in the hotbar will bring up the tooltip. The host (and clients) can save the game, but the host cannot exit. This leads me to believe that the world has just stopped ticking, as parts of the game still continue to work. Rarely, the problem can be fixed by the clients disconnecting, and then re-connecting. Most of the time the problem is solved by the host forcibly closing their game. Every time that this happened, it was within 3 seconds after an autosave has completed on the host (This means no progress is lost!). Running on a lower latency (<50 ms, as opposed to <200 ms normally) connection seems to reduce the frequency of the problem, but does not mitigate it completely.
What I think is happening:
The autosave causes the host's game to slow down temporarily, causing some delay. Maybe the client tries to get ahead of the host, and something locks up.
Other than that, everything's working well. Thank you very much for the amazing work on multiplayer!