Search Unity

  1. Unity 2019.1 beta is now available.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  5. Unity 2018.3 is now released.
    Dismiss Notice
  6. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice

PUN: PhotonNetwork.sendRate - do RPC's obey it?

Discussion in 'Connected Games' started by PrimeDerektive, Dec 3, 2018.

  1. PrimeDerektive

    PrimeDerektive

    Joined:
    Dec 13, 2009
    Posts:
    3,070
    I tried asking this on the photon forums but apparently that place is a ghost town, as I haven't been able to get any responses in a week.

    Anyway, considering the 500/msg/sec/room limit of PUN and Photon Cloud, I'm curious as to how PhotonNetwork.sendRate works (as it is separate from PhotonNetwork.sendRateOnSerialize).

    What is the point of this setting, considering its separated from sendRateOnSerialize? Do RPC's obey it?

    For instance, if I send 10 RPC's per second in addition to serializing a transform in OnPhotonSerializeView, am I sending 20 msg/sec, or is it sending the RPC's in batched intervals determined by PhotonNetwork.sendRate?
     
  2. Jean-Fabre

    Jean-Fabre

    Joined:
    Sep 6, 2007
    Posts:
    317
    Hi,

    yes, RPC is dependent on the sendRate. Getting the true number of messages sent is tricky, for this is better to use the PhotonStatsGui component which will show you exactly how much is sent, traffic, bandwidth. etc...

    Bye,

    Jean