# Jittery Client Interpolation

**URL:** <https://forums.unrealengine.com/t/jittery-client-interpolation/301822>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, client, unreal-engine, Blueprint, question\
**Created:** [December 17, 2014, 6:08am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822 "2014-12-17T06:08:49Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7686fec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7686fec](https://forums.unrealengine.com/u/anonymous_user_e7686fec)\
**Post date:** [December 17, 2014, 6:08am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/1 "2014-12-17T06:08:49Z")

</div>

I created an empty Third Person Template Blueprint project and made a development build with no changes. I tested this build over lan with a listen server and one client, using a simulated lag of 200 ms with the pktlag console command on the client. The clients movement from the perspective of the listenserver was a bit jittery and almost seems to play back at a low frame rate visual wise.

My question is how come on the listenserver the clients movement is not smooth? I would like to know if it is possible to replay/interpolate the clients positions smoothly from within blueprints only?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e7686fec](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e7686fec](https://forums.unrealengine.com/u/anonymous_user_e7686fec)\
**Post date:** [December 18, 2014, 3:10am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/2 "2014-12-18T03:10:21Z")

</div>

After more experimentation…

I stopped using pklag console command and instead am simulating lag using [clumsy, an utility for simulating broken network for Windows Vista / Windows 7 and above](https://jagt.github.io/clumsy/download) and running two instances locally.

I also capped the FPS to 30 fps using the console command ‘t.MaxFPS 30’

So I have found that when using any lag values up to 32ms the client moves smoothly on the listen server. When using lag values equal to or greater than 33ms the clients movement appears jerky on the server. It seems if network packets are delayed to be greater than the frame time (33ms) the clients movement are jerky on the listen server, but the opposite is not true. E.g. with a lag of 200ms the listenservers movement plays back smoothly on the client.

---

<div class="post-metadata">

**Author:** ![Drocks](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Drocks](https://forums.unrealengine.com/u/Drocks)\
**Post date:** [December 18, 2014, 10:19am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/3 "2014-12-18T10:19:26Z")

</div>

I am interested in this too. I wonder if the jitter the server sees is inherent in the listen server model because servers are more concerned with accuracy than smoothing out results?  
If so, are there ways to get around this jitter?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_389e656c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_389e656c](https://forums.unrealengine.com/u/anonymous_user_389e656c)\
**Post date:** [May 25, 2015, 8:41am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/4 "2015-05-25T08:41:16Z")

</div>

I’m seeing the same issue. Is this something related to the discussion found in [this thread][1?]  
Any update or fix to this issue?

---

<div class="post-metadata">

**Author:** ![TwinSeek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TwinSeek](https://forums.unrealengine.com/u/TwinSeek)\
**Post date:** [June 9, 2015, 4:55am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/5 "2015-06-09T04:55:25Z")

</div>

Listen servers are very unappealing because of this unfortunately. I’m really hoping this gets resolved, as it seems kind of odd to force people to use dedicated servers to avoid this issue.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_389e656c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_389e656c](https://forums.unrealengine.com/u/anonymous_user_389e656c)\
**Post date:** [June 9, 2015, 7:57am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/6 "2015-06-09T07:57:58Z")

</div>

Actually in my case there was a problem with the replication of the animations (the client was sending the values to the server, the server was sending back the values to the same client and so on). Once fixed this my listening server is not showing this jittering any more.

---

<div class="post-metadata">

**Author:** ![TwinSeek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TwinSeek](https://forums.unrealengine.com/u/TwinSeek)\
**Post date:** [June 10, 2015, 3:27am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/7 "2015-06-10T03:27:54Z")

</div>

I actually think that might be my problem too. Could you go into detail how you fixed the issue?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_389e656c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_389e656c](https://forums.unrealengine.com/u/anonymous_user_389e656c)\
**Post date:** [June 10, 2015, 6:18pm UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/8 "2015-06-10T18:18:54Z")

</div>

Local input was influencing variables that were also replicated to e from the server.

The fix was to decouple them: local input modified eg. variable “rotation” which is not replicated, the server sets a different “rotation\_remote” replicated variable used to replicate the animation on the other clients.

Does this make sense?

---

<div class="post-metadata">

**Author:** ![JmDevTx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JmDevTx](https://forums.unrealengine.com/u/JmDevTx)\
**Post date:** [June 16, 2015, 12:51am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/9 "2015-06-16T00:51:14Z")

</div>

I don’t understand, could you go into more detail? My client see each other stutter when walking while crouched.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_389e656c](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_389e656c](https://forums.unrealengine.com/u/anonymous_user_389e656c)\
**Post date:** [June 16, 2015, 10:57pm UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/10 "2015-06-16T22:57:38Z")

</div>

I was replicating manually some movement through the replication of variables (e.g. the exact orientation of the head of the character). If you are not doing something like this, but just automatically replicating the animation of the actors probably your issue is a different one…

---

<div class="post-metadata">

**Author:** ![TwinSeek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TwinSeek](https://forums.unrealengine.com/u/TwinSeek)\
**Post date:** [June 17, 2015, 12:39am UTC](https://forums.unrealengine.com/t/jittery-client-interpolation/301822/11 "2015-06-17T00:39:35Z")

</div>

Yeah, this happens for my listen server on the default third person template, so I’m pretty sure this is actually an engine issue. I guess I’ll just use a dedicated server until this is fixed.
