Quantcast
Channel: Recent Discussions — Photon Engine
Viewing all articles
Browse latest Browse all 15755

PhotonNetwork.time and networkingPeer.ServerTimeInMilliSeconds returning weird values?

$
0
0
Hello! I have a question regarding the values returned from PhotonNetwork.time and networkingPeer.ServerTimeInMilliSeconds.
In my game, when a match starts (on the OnJoinRoom callback), I store the current server timestamp so I can create a timer for the match. Usually it works just fine, but every now and then, at the beginning of the match, these functions (I tried both) return 0 for a while and then jump back to the usual values.
Is this normal? And if so, is there some callback its guaranteed that I will get a correct timestamp?

Thanks!

Viewing all articles
Browse latest Browse all 15755

Trending Articles