Synced variable tweening modes do not work well
complete
naqtn
I tested synced variable syncMode with float variable. "linear" syncMode don't work well. It has jitters. "smooth" seems to be completely broken.
Environment: UDONSDK-2020.02.28.21.02
Details:
Please see this movie: https://twitter.com/naqtn/status/1233738531941388290
I used two VRChat clients on a PC and captured windows together. Right side is the owner that does SetVariable 0 and 10 periodically with 1sec interval. Each ball visualizes float variable. Green one shows "none" syncMode variable. Red shows "linear". Blue shows "smooth". Also you can see values as formatted string above. Left side client receives synced value and shows values as same way. I unchecked "Synchronize Animation", "Synchronize Position", "Allow Ownership Transfer on Collision" settings on UdonBehaviour component.
Results was
* Green "none" works fine.
* Red "linear" moves between expected range. But it has jitters. Jumping to middle of the range is also unexpected behavior for me.
* Blue "smooth" goes away. -3.40282347E+38 is Single.MinValue.
When "Synchronize Position" is checked. Synchronization stops after about 5sec on non-owner side. See this: https://twitter.com/naqtn/status/1234124333800255489
(Also in this movie, at the moment just after joining, "linear" case value becomes out of expected range. you can see -12.40506.)
Log In
Momo the Monster
marked this post as
complete
Tested in latest, and looks like the different modes work well, and the data no longer stops in the test scene that naqtn provided.
Momo the Monster
Merged in a post:
[919] Int linear and smooth sync integers are wrong
Drake Hunter
linear and smooth sync values are different
this was done with SyncValueTypes scene
Photo Viewer
View photos in a modal
Momo the Monster
marked this post as
in progress
Momo the Monster
naqtn - I believe we've fixed this with the latest client, can you try again?
naqtn
Momo the Monster: Sorry for late response. (I don't have enough time to check VRChat stuff in last month.)
Now "linear" and "smooth" syncMode work well. https://twitter.com/naqtn/status/1292096442425733121 Tested with Build 970.
But, sub issue remains: synchronization stops after about 5sec on non-owner side if "Synchronize Position" is checked. https://twitter.com/naqtn/status/1292096888225689600
(Should we make another separated issue for this? )