world crash on start up
Closed this issue · 4 comments
sometimes the world crashes on start up. Also had a time where having two clients open froze the godot world project completely and had to kill process to get unstuck.
crash.world.mp4
created a PR for this issue if you are happy with the solution I made.
With this some packets might get delayed to the next processing frame, because send_all_packets
might execute first, and later we would still want to send more. I think we need to adjust Server's process_priority
instead of yield
ing. That way we can make sure the packets are sent at the end of the frame. I am not certain though. I'm gonna ask on godot discord about that.
I think another issue with this is that the players might disconnect in the meantime and I keep trying to do RPCs on them. So the packet queue for the disconnected player needs to be either cleared or skipped