Network strength infomation

Options
I want to know network speed that I am getting on current device.
I some where read about this, using ping we can calculate about data passing capacity of network.

I want to specify some delay in performing some action but as per my consideration specifying fixed time value is not sufficient for multiplayer game.
Because each device running with different internet plans and network speed.

I hope you understand my question. Please help me to understand this concept.

Comments

  • Tobias
    Options
    PUN does not check network speed. Maybe Unity can help here but most likely you need to implement something different per device.
    Mobile devices move. Their bandwidth might change over time.

    You do a roulette game with limited interaction. You should be save, bandwidth wise.
  • As per your suggestion, I don't have to work with bandwidth dependent code here. Am I right??

    If I am working on bandwidth dependent game then what care should be taken?
    This is asking because of knowledge purpose only.
  • Tobias
    Options
    You don't have to work with bandwidth dependent code but should make sure you always use the least amount possible.

    You have to monitor how much data you send/receive and keep below bytes/second.
    If you define some bandwidth as limit, you will have to make sure you don't produce more than that amount of data. Anything that goes over the limit will manifest as lag.