Photon Unity Networking - Lagging / Jittering

Hey guys,
im a beginner in Unity and i need some help.

I created a game with the Standard Assets Car Controller and PUN. Everything’s working fine, but the cars are lagging or jittering, something like that.
I already read some threads about this, but they couldn’t fix my problem.

Does anyone knows a solution? :confused:
And do you need some code or something of my project to analyze that?

Thanks.
J927

Did you read up on using interpolation and extrapolation for network simulations? If not give it a google :slight_smile:

Good Luck.

Hey, thanks for your answer! :slight_smile:

This interpolation and extrapolation thing was one aspect i’ve read about in previous threads, but I still don’t understand how it’s working. Does the interpolation shift the time back in rendering to avoid dropped packets?

And I only found texts that explained the working of interpolation and extrapolation, but not, how I activate, create, whatever it. Or am I to dumb for this? :confused:

Thanks.
-J927

PUN has a sample in a folder named “DemoSynchronization”. It’s not for cars but you should get the idea and be able to apply this for cars.

Also, take a look at this tutorial, which focuses entirely on using PUN for a racing game:

The videos might give you some insight. The package itself is a cooperation with an external developer, which is the reason why it’s not entirely free.