unity-unet-authoritative-networking icon indicating copy to clipboard operation
unity-unet-authoritative-networking copied to clipboard

smooth proxy movement when syncing more than 3 tiems a asecond

Open ashkan-saeedi-mazdeh opened this issue 6 years ago • 1 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?

ashkan-saeedi-mazdeh avatar Aug 24 '18 15:08 ashkan-saeedi-mazdeh

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.

atrakeur avatar Nov 06 '18 10:11 atrakeur