A working extr/interp sync solution?
Options
Comments
-
bump0
-
bump too!0
-
It's kinda sad how many photon games are published , yet no one uses proper sync. Almost every demo i tried using lerp which looks smooth but it is delayed a lot.0
-
It depends on the specific game, if delay is ok. Maybe those games don't really require much more. Also, there is no "best way", cause it depends on what lag you expect, the input and steering, etc. Lag hiding is still pretty difficult and a "per-game topic".
Have a look at the "Synchronization" Demo in the PUN package. It shows extrapolation, too. Nothing too sophisticated but it could hint you in the proper direction.
http://u3d.as/2ey0 -
Yeah , i saw that. It contains both extrapolation and interpolation but doesn't implement both of them.
NetworkRigidbody/NetworkTransformSync scripts used lerping,extrapolation and interpolation and once. When I used unity networking and used that script there was literally no delay or unsmooth motion.
Can we see some example that will use extrapolation , interpolation and lerping between those points?0 -
@Filipd
What did you manage to get ?
I made a little transformation on the NetworkRigidBody here:
viewtopic.php?f=6&t=121&hilit=prediction&start=10
Do you think i am on the right way ?0 -
Has someone seen this BTW ?
http://wiki.unity3d.com/index.php/Netwo ... ition_Sync0 -
I can't jump into experimenting now but Leepo once wrote a little sample and maybe you can turn this into a community project to get it fully running.
I started a topic for that here:
viewtopic.php?f=17&t=26660