Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

stream.ReceiveNext () not working when increase latency

$
0
0
Hi, I have 4 players working normally with my 30-50 normal latency. But when I increase latency of them all with: PhotonNetwork.NetworkingClient.LoadBalancingPeer.IsSimulationEnabled = true; PhotonNetwork.NetworkingClient.LoadBalancingPeer.NetworkSimulationSettings.IncomingLag = 50; PhotonNetwork.NetworkingClient.LoadBalancingPeer.NetworkSimulationSettings.OutgoingLag = 50; I start receiving this error msg: "InvalidCastException: Specified cast is not valid.". It's in my OnPhotonSerializeView, a normal cast that I have stream.ReceiveNext (), that usually works. It even works with 2 players, but not working with 4. Anyone know what this could be?

Viewing all articles
Browse latest Browse all 8947

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>