Hi there,
I just did some profiling on the OnPhotonSerializeView method to see if it was called the correct number of times, and the results seem weird to me:
let's say my settings are:
SendRate = 30
SendRateOnSerialize = 20
the photonView is set to Unreliable. So from what i understand, it will always send updates even if the values do not change, this should make the calls to OnPhotonSerializeView consistent.
So, every time OnPhotonSerializeView is called on the character, i get the time since the last time it was called and put that time in an array containing a 100 or so values (tried with 1000 too just to be sure). i displayed the medium of the values in said array, expecting to see something around 50ms (20 frames per second makes for 50ms between frames yes?) with my settings, i get around 65... with other settings it's the same i always get more time than i expect between calls to OnPhotonSerializeView(), on the receiver and on the sender side too...
Why is that? is there something i don't know or forgot to take into account?
Thank you for your answers =D
I just did some profiling on the OnPhotonSerializeView method to see if it was called the correct number of times, and the results seem weird to me:
let's say my settings are:
SendRate = 30
SendRateOnSerialize = 20
the photonView is set to Unreliable. So from what i understand, it will always send updates even if the values do not change, this should make the calls to OnPhotonSerializeView consistent.
So, every time OnPhotonSerializeView is called on the character, i get the time since the last time it was called and put that time in an array containing a 100 or so values (tried with 1000 too just to be sure). i displayed the medium of the values in said array, expecting to see something around 50ms (20 frames per second makes for 50ms between frames yes?) with my settings, i get around 65... with other settings it's the same i always get more time than i expect between calls to OnPhotonSerializeView(), on the receiver and on the sender side too...
Why is that? is there something i don't know or forgot to take into account?
Thank you for your answers =D