r/MoonlightStreaming • • 1h ago

Improving LAN latency??

So every time i exit a stream i get a pop up saying "why does my stream stutter?" Or something along those lines. It then gives me a brief break down of my latency.

Host to encode is a maximum of 1.5ms (not too bad i don't think)

Host to network is around 20ms (considerably high despite how i am connected).

I have my hosts 2.5GbE motherboard port connected to a 2.5GbE switch, then switch to router, router to another switch, then switch to a 2.5GbE USB A network interface on my client. All shows as 2.5GbE connection when looking at my routers interface (Unifi).

My bitrate is set at 1900Mbps using Pyrowave 4.4.4

I have disabled efficient ethernet in both the host and clients network adapter settings and ither settings which could induce latency.

When i ping one PC to the other i get a result of 1ms via CMD.

So i imagine it's a software issue somewhere.

Any ideas how to resolve this?

2 Upvotes

3 comments sorted by

4

u/lifestealsuck 1h ago

1900Mbps ???

1

u/MassiveProblem156 1h ago

The inherent latency for moving the data is bitrate ÷ fps ÷ link speed, so at 60 fps, you can't get better than around 13ms. Using a lower bitrate should help. I image there is a bottleneck somewhere, but I don't know where it might be

1

u/jazzmonkai 55m ago

I’d start by reducing bit rate and see if that affects latency at all. Just because your host can encode and push that amount of data, it’s not a given your client can decode it at the same rate.

Pushing a constant 1900mbps is demanding for most home networks. There’s a world of difference between ping and a UDP stream.

So, see what results you get from a real bandwidth test like iperf3, with the UDP and bandwidth (at 1900mbps) flags set in both directions. That will tell you what the network is doing.

That should give you some information to start troubleshooting from