Tickrates for Photon Server and Client
The whole answer can be found below.
Try Our
Documentation
Please check if you can find an answer in our extensive documentation on Photon Server.
Join Us
on Discord
Meet and talk to our staff and the entire Photon-Community via Discord.
Read More on
Stack Overflow
Find more information on Stack Overflow (for Circle members only).
Tickrates for Photon Server and Client
huyaks69
2020-09-03 20:48:26
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
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
@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?
hi, @huyaks69
I was wrong. naggling is switched off by default and if it is switched on it does only delay
best,
ilya