Search Unity

Third Party How does Photon measure bandwidth to be charged?

Discussion in 'Multiplayer' started by Milionario, May 30, 2021.

  1. Milionario

    Milionario

    Joined:
    Feb 21, 2014
    Posts:
    138
    Hi since i see the photon forum is a little bit dead i decided to ask here..

    All values are in KiloBytes, not Kilobits.

    Lets say for example:
    - Each player in my game sends 10KB/s
    - We have 10 players in total.

    Would photon charge me 1KB/s * 10 players = 100KB/s?

    Or would it count 1MB/s because each player is sending 10KB/s and receiving the other 9 players as well so 90KB/s = 100KB/s

    10 players = 1MB/s
     
  2. ? I'm guessing you wanted to write 10 here?
    Here is the text from the product page itself:
     
  3. Milionario

    Milionario

    Joined:
    Feb 21, 2014
    Posts:
    138
    Thanks, I missed that, yeah that was meant to be a 10 not 1.

    So if i have 10 players connected, each one sending 10KB/s and receiving 90KB/s, that means 100KB/s traffic per player. So we are talking about 1MB/s for 10 player match, that looks like its going to reach the traffic limit quick?

    All incoming and outgoing messages

    Do outgoing messages get multiplied by the number of players? Or each outgoing message is just counted as 1 message regardless of how many players there are
     
  4. tobiass

    tobiass

    Joined:
    Apr 7, 2009
    Posts:
    3,066
    Outgoing messages are per player it gets sent to.
    Sending 10KB/sec and player is quite a lot of data, if we talk about sending positions and a few extra values. What do you plan to send??
     
  5. Milionario

    Milionario

    Joined:
    Feb 21, 2014
    Posts:
    138
    It's because
    Each player is a ragdoll and has 15 body parts, so its 15 rigidbodies per player.
    I tried with one and doing the calculations locally for replicated players but got the best results with the first method.