# Client replication vehicle movement lag

**URL:** <https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026>\
**Category:** World Creation\
**Tags:** vehicle, networking-replicat, unreal-engine, bug-report, question\
**Created:** [October 31, 2015, 3:28am UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026 "2015-10-31T03:28:09Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [October 31, 2015, 3:28am UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/1 "2015-10-31T03:28:09Z")

</div>

We create a multiplayer car сombat game. When vehicle move on client and in vehicle SpringArm set EnableCameraLag = true - it is lagging. It does not depend on ping.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 2, 2015, 7:24pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/2 "2015-11-02T19:24:06Z")

</div>

Hey Gelani,

Most likely Client character or vehicle is causing a large enough network load between Server and Client. This is probably from an overdependence on Reliable RPCs or simply too many network calls. You can get a good look at what is specifically causing network lag by using the [Network Profiler](https://docs.unrealengine.com/latest/INT/Gameplay/Tools/NetworkProfiler/index.html). Once you’ve identified actor or actors that are causing lag, you can start eliminating extraneous network calls.

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 2, 2015, 7:38pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/3 "2015-11-02T19:38:51Z")

</div>

But 4.8 all be fine. And is lag then is server and client in some machine. Are you tested multiplayer with vehicle? 4.9 some error.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 2, 2015, 9:17pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/4 "2015-11-02T21:17:13Z")

</div>

I have tested with Vehicle Advanced template project in 4.9 and 4.10, both in editor and packaged project. Again, I would recommend using Network Profiler to identify source(s) of lag you’re experiencing.

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 5, 2015, 4:41pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/5 "2015-11-05T16:41:30Z")

</div>

Test Vehicle template in 4.9, and in spring arm set checked “Enable camera lag”. And you will see lagging.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 5, 2015, 5:30pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/6 "2015-11-05T17:30:29Z")

</div>

Okay, I tried that and still don’t see any lag on Client.

1. Are you using a vanilla version of engine, or have you edited source code at all?
2. Is this a BP only project, or have you added code?
3. Is this occurring while playing in editor (PIE), or only in a packaged game? If in editor, which play mode are you using?
4. Have you used Network Profiler yet?

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 5, 2015, 7:50pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/7 "2015-11-05T19:50:35Z")

</div>

1. 4.9.2 Realese
2. Create BP project Vehicle
3. in Sedan blueprint SpringArm set EnableCameraLag = true
4. Package game (Widows 64)
5. Lanch listen server
6. Lanch client (in some machine)
7. On client vehicle is lagging when speed is high ( 100 km/h )

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 5, 2015, 9:32pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/8 "2015-11-05T21:32:41Z")

</div>

Thanks for extra details, but I still don’t see any lag on Client. You’re not referring to shifting gears, are you? Can you post a video somewhere?

Have you used Network Profiler in editor yet?

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 5, 2015, 10:49pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/9 "2015-11-05T22:49:11Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/9/d/49dae714dba10419aab8e8b0f370050eae34a0ca.jpeg "Client replication vehicle movement lag") ](https://www.youtube.com/watch?v=Ggcbgp2A9O4)

Yes I use Network Profiler.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 9, 2015, 5:59pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/10 "2015-11-09T17:59:48Z")

</div>

That video appears sped up. Can you send one at normal speed? Or are you speeding it up in editor?

What results did you get from Network Profiler? Can you post a screenshot, please?

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 9, 2015, 7:00pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/11 "2015-11-09T19:00:48Z")

</div>

Video is normal speed. I capture this through NVidia Shadow Play. It is package game. Network Profiler will show same as you. It’s a standard project “Vehicle”.  
You really do not notice how car jerks?  
OK. I later send screenshots.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 10, 2015, 7:38pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/12 "2015-11-10T19:38:07Z")

</div>

only jerking motion I see is when car is mid-gear, while shifting. But video is super fast, so I don’t know if I’m missing something.

Have you adjusted framerate in your project?

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 10, 2015, 8:26pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/13 "2015-11-10T20:26:42Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/7/3/673adb0f27069d2f2b28172a0e942b9f63e04d9b.jpeg "It is right in front of your eyes") ](https://www.youtube.com/watch?v=TOGoXUx0Heo)

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 10, 2015, 8:30pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/14 "2015-11-10T20:30:09Z")

</div>

It is not video frame rate, it is vehicle jerking in 5 gear in end video.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 10, 2015, 8:36pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/15 "2015-11-10T20:36:07Z")

</div>

I am trying to help you. If you don’t give me something to work with and I ask for clarification, or other information, please don’t throw useless memes at me.

video you posted is playing super fast and I cannot clearly see any lagging in 5th gear. If you can post a video that’s not sped up like that, I might be able to see it.

As it stands, simply creating a Vehicle template project, packaging, and playing on Client, I do not see any lag on vehicle’s movement at any point in vehicle’s gear cycle. If you want to post your test project somewhere and send me a link, I can check there as well. Otherwise, I have to assume this is a problem on your end.

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 10, 2015, 8:42pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/16 "2015-11-10T20:42:10Z")

</div>

OK. I made 2 projects (4.8 & 4.9) and share link to those. For us it is a critical error, we make car combat game, but because of this error, we will forced to either postpone release. 4.8 everything worked well when we switched to 4.9 - there was this error.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 11, 2015, 10:13pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/17 "2015-11-11T22:13:07Z")

</div>

If you can get me a link to 4.8 project and/or 4.9 project, I can take a look.

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 25, 2015, 3:00am UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/18 "2015-11-25T03:00:15Z")

</div>

> **[Dropbox - Error](https://www.dropbox.com/sh/iz006hmswc9oncz/AABfQIvBq0IMH1HBxX6xXgqoa?dl=0)**
>
> Dropbox is a free service that lets you bring your photos, docs, and videos anywhere and share them easily. Never email yourself a file again!

4.10 Release (Not source)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_33800a51](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_33800a51](https://forums.unrealengine.com/u/anonymous_user_33800a51)\
**Post date:** [November 27, 2015, 7:33pm UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/19 "2015-11-27T19:33:24Z")

</div>

Thanks! I had to create some networking functionality in project to properly test in a packaged project, but once I did I also noticed a bit of lagging on Client. When I attempted to record it, it got much worse. I’m not certain what’s causing it, nor why I didn’t see same in a new project I created earlier in 4.9.

I also tested your project in our internal build (which will eventually be 4.11), and lagging did not occur. It’s possible you’re seeing this more on your end than I am on mine, however, so if you’d like to test to see if this is resolved in an upcoming release, your best bet is to grab latest Promoted build on GitHub and create a copy of your test project in that. Let me know if you still see lag in there and we can investigate further.

---

<div class="post-metadata">

**Author:** ![Gelani](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Gelani](https://forums.unrealengine.com/u/Gelani)\
**Post date:** [November 28, 2015, 3:21am UTC](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026/20 "2015-11-28T03:21:04Z")

</div>

I will try 4.11 and report results

[Next page](https://forums.unrealengine.com/t/client-replication-vehicle-movement-lag/337026.md?page=2)
