Tickrates for Photon Server and Client

Options
Hello.

From what I could understand, a Photon Client always sends its data with a rate defined by PhotonNetwork.SendRate and PhotonNetwork.SerializationRate.

But how does Photon Server handle received packets? Does the server receive and send them synchronously at a certain tickrate or asynchronously? What exactly happens with the packets in the server (enqueued, then dequeued)?

Does a Client receive packets synchronously at a certain tickrate or asynchronously?

Thank you.

Comments

  • chvetsov
    Options
    hi, @huyaks69

    The server does not have any tick rates except some delay for sending. it may delay sending up to 15 ms to collect more data. but if there is enough data to send they are send right away.

    all data that arrive on server are handled as fast as possible and send as fast as possible too

    client gets data asynchronously from network and populates internal queue. and user code gets ready to use events, operation responses during call to Service method.

    best,
    ilya
  • huyaks69
    Options
    @chvetsov What exactly does 'enough data to send' mean? Does it ensure that every set of data to be sent consists of new client data?
  • chvetsov
    Options
    hi, @huyaks69

    I was wrong. naggling is switched off by default and if it is switched on it does only delay

    best,
    ilya