I'm currently trying to port an existing network system to use Photon networking. The system is written on top of a custom built reliable UDP system. Essentially it boils down to two primary methods:
SendReliableOrdered(byte targetPeer, ArraySegment packet)
SendUnreliableUnordered(byte targetPeer, ArraySegment packet)
I've tried to implement this same contract on top of Photon using "PhotonNetwork.RaiseEvent". Here's the relevant code extract: https://gist.github.com/martindevans/a770f090d1e4b1e50e5d918ce83a38a7
This seems to basically work except I'm getting a *lot* of packet loss as I ramp the send rate up. At roughly 50 packets/second I'm getting approximately 5-10% packet loss sending from localhost to localhost (presumably bouncing off the photon cloud servers though).
Any suggestions?
SendReliableOrdered(byte targetPeer, ArraySegment packet)
SendUnreliableUnordered(byte targetPeer, ArraySegment packet)
I've tried to implement this same contract on top of Photon using "PhotonNetwork.RaiseEvent". Here's the relevant code extract: https://gist.github.com/martindevans/a770f090d1e4b1e50e5d918ce83a38a7
This seems to basically work except I'm getting a *lot* of packet loss as I ramp the send rate up. At roughly 50 packets/second I'm getting approximately 5-10% packet loss sending from localhost to localhost (presumably bouncing off the photon cloud servers though).
Any suggestions?