Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

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

Discussion in 'Multiplayer' started by PrimeDerektive, Dec 3, 2018.

  1. PrimeDerektive

    PrimeDerektive

    Joined:
    Dec 13, 2009
    Posts:
    3,090
    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:
    429
    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