atrakeur / unity-unet-authoritative-networking

A simple implementation of authoritative movement on top of unet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

smooth proxy movement when syncing more than 3 tiems a asecond

ashkan-saeedi-mazdeh opened this issue · comments

I'm trying to sync values 30 times from server to proxies (i.e. other clients). However when I change the interval from 0.33 to 0.033 then movement becomes jittery on proxies. Do you know why?

It's hard to say without more details. But out of the blue here are the possible reasons:

  • It may be because you are sending too much data too often. Causing packets sent to become bigger, creating more packet loss.
  • It may be because server have hard time keeping up with sync states
  • It may be because you are overloading reconciliation code with too much data, and then it fallback to the good old "snap player to position".

What are you trying to do with so many packets? Remember that in any case, no internet connection can keep up with the refresh rate of a monitor. So one good packet each second with a good prediction code is largely better than 100 packets per seconds with little to no prediction at all.