PhotonHandler.Update() framerate spike when using unreliable synchronization

Options
Hello,

I'm new to Photon, so maybe this is something obvious. When I use unreliable synchronization on a photonview, I get frequent framerate spikes of 10 - 150 ms in Unity. The profiler says it's from PhotonHandler.Update () SendOutgoingCommands.

I'm sure this isn't to do with bandwidth, because the observed script is only synchronizing 4 shorts.

If I use reliable delta compressed, the problem goes away, but using unreliable synchronization would be preferable because the values will be constantly changing.

On another note, can anyone tell me how to adjust the send rate?

Thanks,
Kilted Camel.

Comments

  • vadim
    Options
    Hi,

    Can you do a deep profile and send as a few screenshots with unity's analysis of the issue?
    Also would be nice to have simple repro project to run profiler on our side.
  • My apologies, it turns out it was a problem in my code which meant I was sending a lot more data than I realized. Thanks for your reply.