# how can i solve this multiplayer lag

**URL:** <https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479>\
**Category:** Multiplayer & Networking\
**Tags:** lag, unreal-engine, Multiplayer, Blueprint, question\
**Created:** [September 3, 2024, 1:39pm UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479 "2024-09-03T13:39:30Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DonJuan1232](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonJuan1232](https://forums.unrealengine.com/u/DonJuan1232)\
**Post date:** [September 3, 2024, 1:39pm UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479/1 "2024-09-03T13:39:30Z")

</div>

So I am making a small multiplayer game to play with friends online using online subsystem for Steam. But the game always has this laggy/rubberbanding while the ping looks good.

Left is host right is client. ping in this instance was 43 when i play with friends online it is 999

I have tried to increase the maximum bandwidth but that didnt help.

If you know what is going on then please help thank you.

---

<div class="post-metadata">

**Author:** ![Rev0verDrive](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/rev0verdrive/32/907214_2.png) [@Rev0verDrive](https://forums.unrealengine.com/u/Rev0verDrive)\
**Post date:** [September 3, 2024, 7:11pm UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479/2 "2024-09-03T19:11:09Z")

</div>

- Host system specs
- Host WAN connection quality
- Server tick rate (hosts FPS in listen server setups)
- Character class Tick rate
- Network smoothing

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [September 3, 2024, 9:06pm UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479/3 "2024-09-03T21:06:40Z")

</div>

It’s because you are running both instances on the same machine. The window that loses focus it updated at a lower rate. If you were to have two separate machines then you would see that the experience is better.

You can also try packing the game and running two instances without the engine overhead then.

You can also turn off run under one process if you are testing multiplayer. You will get a server console that may give you extra information (if you have anything not loading with assets etc)

 ![obraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/4/c/e4ca04eefdf607b179f6f28095f410b27c2c0422.png)

The lag can also depend on if the the client machines are of different specs (one may be a lot weaker) & the distance between them.

Are you doing sending any network data on tick? Maybe you are saturating your bandwidth with data choking the network? How does the network transfer look while playing on 2 pc’s?

---

<div class="post-metadata">

**Author:** ![DonJuan1232](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonJuan1232](https://forums.unrealengine.com/u/DonJuan1232)\
**Post date:** [September 6, 2024, 9:07am UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479/4 "2024-09-06T09:07:43Z")

</div>

When I run it on 2 pc’s on the same and different network the host is all fine but the clients are all “lagging”. I think the problem is somewhere with the character replication that for some reason that is the problem.

my first person character:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/d/b9de772ae3c434683cd1bd36c99577616e98dc18.png)

---

<div class="post-metadata">

**Author:** ![3dRaven](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/3draven/32/906552_2.png) [@3dRaven](https://forums.unrealengine.com/u/3dRaven)\
**Post date:** [September 6, 2024, 9:22am UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479/5 "2024-09-06T09:22:12Z")

</div>

![obraz](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/9/c492871ece357e22f4a24920b2a861672dcfb41c.png)  
Why are you replicating all of the sub components?

If you need to change them then use on rep notify. There is usually no need to constantly be replicating these components as their driving parameters should be replicated (like aim angle etc) and then update them locally.

---

<div class="post-metadata">

**Author:** ![DonJuan1232](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@DonJuan1232](https://forums.unrealengine.com/u/DonJuan1232)\
**Post date:** [September 6, 2024, 1:17pm UTC](https://forums.unrealengine.com/t/how-can-i-solve-this-multiplayer-lag/2003479/6 "2024-09-06T13:17:04Z")

</div>

I changed it thanks for the tip
