unitystation
unitystation copied to clipboard
Server takes forever to load data, or just outright stops loading, when connections are poor
I've noticed a lot of weird issues regarding loading the game on rejoining when I was trying to debug some UI issues with the lobby. If you try joining the game with a connection that's really slow or drops packets frequently, your game might get stuck on loading for long periods of time; and might just outright not finish loading at all.
I used clumsy to simulate the connection issues in a local environment, and while the results are harder to replicate on local compared to staging; you can still notice some weird oddities regarding player loading if you are patient enough.
Some of the observed issues:
- Players rejoining into a void.
- Players getting stuck on the "choose your department" screen after having their character spawned on the server, but not given control on the client side.
- Client completely forgetting to set some important flags on the Subscene manager and JoinedViewer that are critical for getting past the loading screen.
- Kicking the player randomly after some time.