I can't find a way to sync time between client and server. It is essential for lag compensation. I used to have Network.Time but it doesn't work with the new hlapi. I tried using commands and rpc to calculate the difference but Time.time is very unstable and stops when you drag a window for example so any synchronisation breaks without any warning. And it's not trivial to get a good sync precision. Got any advice?
↧