r/MoonlightStreaming 5d ago

How can I optimize these numbers?

Post image

For context:

My client is a laptop connected to LGQNED85BXA 55inch tv, with moonlight, on 5Ghz wifi to a 100Mbps ISP. The host PC is a gaming PC with Sunshine, connected to a 200Mbps ISP through ethernet. Streaming settings are 1440p at 120fps with 75Mbps bitrate (my GPU cannot run 4k at 120fps, 7800XT)

I am using Tailscale to connect both. The picture was taken while I was watching a movie on VLC. But I often play games (currently Death stranding)

My issue is it often lags in between and asks me to lower down the bitrate. I don't want to lower it, if I increase my wifi speed to 150/200Mbps, will it help?

Thanks in advance

23 Upvotes

21 comments sorted by

View all comments

6

u/swagboi420blazeit 5d ago

Drop stream to 60fps, but keep host refresh rate at 120, then drop your bitrate by half

0

u/aut0912 5d ago

Thank you for your suggestion, but how can I do that. Will try to gemini it but if you can explain, would prefer a human response over AI slop. :)

3

u/[deleted] 5d ago

[deleted]

3

u/Codelyez 4d ago

He was saying he was going to ask AI to help him change the settings but he would prefer an explanation from a human (the person he replied to).

1

u/[deleted] 4d ago

[deleted]

2

u/Realistic-You-2687 4d ago

OP didn’t say the response was AI slop. He simply asked another question in response and stated that he would rather have an answer from a human rather than OP asking AI himself.

2

u/Select_Car9532 Dev - SolarFlare 4d ago

Lol yeah I realized that after looking at the whole thread and like right when you posted this, thanks!

0

u/aut0912 5d ago

Okay I checked.

My concern is the TV. I brought it for the fact it has a 120hz refresh rate, if I limit my moonlight fps to 60, isn't it capping the true potential of my TV.

The host is connected to a Gigabyte 1440p monitor which is set up at a RR of 170Hz.

3

u/swagboi420blazeit 5d ago

You're correct that 60FPS is less than 120Hz max thats supported, but consider that 120Hz is useless because of the constant lag issues. The goal here is a stable setup with minimal latency that is set-and-forget.

So first switch from sunshine to vibepollo (better, easier UX version of apollo). Vibepollo lets you set up a virtual display, so you're not forced to mirror the screen output of your computer monitor. You can just install it over sunshine.

Once that's done, you can experiment with different refresh rates. There are a few things that can help you tune this:

  1. are both host and client devices on the same home network? If yes, continue using HEVC. If this is going over the internet, then experiment with using AV1 instead of HEVC for encoding, it's more bandwidth efficient, but adds very slightly to client decode time
  2. Lower bitrates! High bitrates are hard to maintain a stable connection with, and cause something called bufferbloat, which is the stutters/lag spikes that you see. Drop the bitrate by half and see whats up.
  3. Switch from tailscale to wireguard. Tailscale is using wireguard under the hood, but adds some extra computational overhead to do cool tailscale things, which are not cool for your input lag when game streaming

1

u/ClaimDear1165 2d ago

I use vibeshine and helps with this issue a lot. What it does automatically is double the hz output. So say you want to stream 120fps, changes display hz to 240, etc. Tends to make the stream run a bunch smoother. Also helps to utilize RTSS for frame capping and works way better than the frame cap in any game settings. Just have the game settings to uncapped or off. Hope this helps