Why PhotonNetwork.LoadLevel() timeouts and disconnects me from room?
Options
Hello, I'm new and I have a question.
When I'm using PhotonNetwork.LoadLevel() to load big scene it disconnects me from room.
I have PhotonNetwork.AutomaticallySyncScene = true; in onAwake
and PhotonNetwork.IsMessageQueueRunning = false; when the level starts loading, and after loading i set PhotonNetwork.IsMessageQueueRunning to true, but it's still disconnects me.
Console Log:
Server IP:PORT sent disconnect. PeerId: 62590 RTT/Variance:59/15 reason byte: 2
When I'm using PhotonNetwork.LoadLevel() to load big scene it disconnects me from room.
I have PhotonNetwork.AutomaticallySyncScene = true; in onAwake
and PhotonNetwork.IsMessageQueueRunning = false; when the level starts loading, and after loading i set PhotonNetwork.IsMessageQueueRunning to true, but it's still disconnects me.
Console Log:
Server IP:PORT sent disconnect. PeerId: 62590 RTT/Variance:59/15 reason byte: 2
1
Answers
-
Hello. I am in the same situation. Have you worked this out?0
-
Hi @MsMaciek,
Thank you for choosing Photon and sorry for the delay, I hope you managed to find a solution to your problem already!
@Kyriakos,
Thank you for choosing Photon!
Is the scene to be loaded too big? maybe try additive scene loading (something like this)?
Does this happen in Unity Editor?
if it's a standalone build try enabling Unity's RunInBackground.
Try increasing PhotonNetwork.KeepAliveInBackground value to a huge value, maybe double the default value which is 60000 milliseconds.0