Search Unity

  1. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  2. Want more efficiency in your development work? Sign up to receive weekly tech and creative know-how from Unity experts.
    Dismiss Notice
  3. Participate with students all over the world and build projects to teach people. Join now!
    Dismiss Notice
  4. Build games and experiences that can load instantly and without install. Explore the Project Tiny Preview today!
    Dismiss Notice
  5. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  6. Want to see the most recent patch releases? Take a peek at the patch release page.
    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,066
    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:
    311
    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