#PredictedObject owner jitter on 3.5.8 Pro

30 messages · Page 1 of 1 (latest)

worthy violet
#

Hello,
Since I updated to 3.5.8 Pro, I have jitter on my PO owner.
This is weird because this version is supposed to improve jitter on PO owners (as said in the changelogs)
I have no jitter in previous versions( 3.5.7, 3.5.6 Pro...)
Anyone can relate?
@hot ridge wdyt?

hot ridge
#

What's your interpolation set to for owner?

worthy violet
#

@hot ridge

hot ridge
#

Yeah before anything but 1 was interpolating way too quickly. It's now correct. @worthy violet

#

It was doing (distance / (delta * interpolation))

#

When it should have been delta / interpolation

worthy violet
#

okay but I have interpolation set to 2, so why do I still have jitter? am i missing something ?

#

i might be tired, sorry if it's a stupid question lol

hot ridge
#

Lets say you moved 1 unit over 20ms. that's a move rate of 50 units per second right?

worthy violet
#

yes

#

1 unit / 0.02 seconds = 50 units per second

hot ridge
#

And I just realized I think I broke my math somehow

worthy violet
#

are you the only maintainer of fishnet source code?

hot ridge
#

I take merges and what not, but mostly yeah. Change this float delta = ((float)_networkBehaviour.TimeManager.TickDelta / _interpolation);

#

to a multiply

worthy violet
#

ok i'm trying now

hot ridge
#

Yeah that was a big oops

worthy violet
#

yup it's fixed by using multiply instead of divide @hot ridge

#

now this is smooOOoOoth 😄

hot ridge
#

I tested the smoothing after the change too. I'm not entirely sure why my tests didn't show the jitter.

worthy violet
#

I can tell you this is fixed on 3.6.2.m8 Pro AND 3.5.8 Pro

#

both versions works well i tested

#

with this fix

hot ridge
#

Yeah it was dumb.

worthy violet
#

No it's okay happens man, thanks @hot ridge for your work

subtle starBOT
#

FirstGearGames received thanks.

hot ridge
#

Well, the new prediction stuff is going to make things a lot more simple

#

Only need to call replicate and reconcile once, no more predicted object.

worthy violet