# High lag when playing with network emulation and on LAN?

**URL:** <https://forums.unrealengine.com/t/high-lag-when-playing-with-network-emulation-and-on-lan/1793331>\
**Category:** Multiplayer & Networking\
**Tags:** Networking, lan, unreal-engine, question\
**Created:** [April 8, 2024, 3:03am UTC](https://forums.unrealengine.com/t/high-lag-when-playing-with-network-emulation-and-on-lan/1793331 "2024-04-08T03:03:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samathan/32/1058905_2.png) [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Post date:** [April 8, 2024, 3:03am UTC](https://forums.unrealengine.com/t/high-lag-when-playing-with-network-emulation-and-on-lan/1793331/1 "2024-04-08T03:03:04Z")

</div>

Whenever I test my game in PIE, on LAN, on one machine, using “average” network emulation, there appears to be a high amount—much higher than what should be “average”—of lag, rubber-banding, and stuttering when it comes to movement, gameplay abilities, etc. When I play the same way with a packaged build (no network emulation), there’s still lag, but I don’t know if it has something to do with the fact that one of the clients is always in the background/out of focus, and thus has a lower frame-rate.

[This is the kind of lag I am talking about. The first clip is in PIE, with two clients and a dedicated server. The second clip is a listen server in the left window and a client in the right window.](https://youtu.be/9ULT0gY64P4)

I haven’t changed any of Unreal’s built-in movement, and I’m confident I’ve set up the Gameplay Ability System correctly. Is there something I did wrong, or something I forgot to do/configure?

Does anyone know what could be causing this problem, or if it’s even a problem at all?

---

<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:** [April 8, 2024, 3:20am UTC](https://forums.unrealengine.com/t/high-lag-when-playing-with-network-emulation-and-on-lan/1793331/2 "2024-04-08T03:20:43Z")

</div>

PIE Client mode starts a server in the background and everything is run under “one process”. This is more performant than a server, and 2 client instances. Disable that and you’ll see what I mean.

The hardware you’re running on is also a huge factor. Servers (listen server hosts) need a lot of CPU and RAM.

Question I have is why are you running network emulation on a packaged build that’s networked over LAN?

---

<div class="post-metadata">

**Author:** ![Samathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samathan/32/1058905_2.png) [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Post date:** [April 8, 2024, 7:43pm UTC](https://forums.unrealengine.com/t/high-lag-when-playing-with-network-emulation-and-on-lan/1793331/3 "2024-04-08T19:43:12Z")

</div>

Disabling “one process” unfortunately does not improve the network lag.

> Question I have is why are you running network emulation on a packaged build that’s networked over LAN?

I was only running network emulation when playing on one machine in PIE. I wasn’t using network emulation in the packaged build.

---

<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:** [April 8, 2024, 7:49pm UTC](https://forums.unrealengine.com/t/high-lag-when-playing-with-network-emulation-and-on-lan/1793331/4 "2024-04-08T19:49:07Z")

</div>

The way it reads seemed as you where. All good.

Is the LAN wifi or ethernet?

---

<div class="post-metadata">

**Author:** ![Samathan](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/samathan/32/1058905_2.png) [@Samathan](https://forums.unrealengine.com/u/Samathan)\
**Post date:** [April 8, 2024, 7:50pm UTC](https://forums.unrealengine.com/t/high-lag-when-playing-with-network-emulation-and-on-lan/1793331/5 "2024-04-08T19:50:52Z")

</div>

I’m using WiFi, but it’s decently quick. I rarely surpass 10-15ms of latency in online games.
