moonlight-stream / moonlight-android

GameStream client for Android
GNU General Public License v3.0
4.3k stars 682 forks source link

Occasional stutters, lag, "reduce bitrate message", otherwise handles well over 80mbps just fine #1367

Closed NullVoxPopuli closed 5 months ago

NullVoxPopuli commented 6 months ago

Describe the bug

This is a WIP issue, as I'm still collecting information, I just wanted to have a place that didn't pollute other issues' situations while I figure out what's been going on with my situation.


Originally commented on: https://github.com/moonlight-stream/moonlight-android/issues/79

Of note, moonlight is running on Ubuntu Linux, 24.04. I did not have any lagging on 23.10 and prior.

I've tried all solutions here (see below), and nothing has helped. What's goofy is I have buttery smooth streaming at 45-80+mbps (though, I keep this lower, because I don't want to tempt the stability anything -- I do have smooth (but slow) streaming and then stutters at 150mbps, so that's def too high) -- and I only have a 4fps slide for maybe 10s every 2-5 minutes. FPS on the host machine (shown via nvidia overlay) never drops belong my streaming refresh rate max (60fps in this case today)

So, this interval stutters is kinda telling me that either,


Update:

things I've tried so far


Related Docs:

Related issues:

Steps to reproduce

still figuring these out

Affected games

n/a, all streaming is affected

Other Moonlight clients

PC

Moonlight adjusted settings

Yes

Moonlight adjusted settings (please complete the following information)

image

Moonlight default settings

No

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

n/a

Device model

Framework AMD 13, AMD Ryzen 5 7640U w/ Radeon 760M Graphics @ 12x 4.971GHz

Server PC OS version

Windows 11

Server PC GeForce Experience version

3.28.0.412

Server PC Nvidia GPU driver version

555.99

Server PC antivirus and firewall software

Windows Defender and Windows Firewall

Screenshots

n/a

Relevant log output

wip

Additional context

wip

NullVoxPopuli commented 5 months ago

The host PC has 0 issues, lag -- though, I don't know if the problem is with Sunshine or Moonshine.

Here are what the stats look like when streaming is smooth image

And then when I get the slow connection rate image

actualling, according to these logs, it looks like maybe Sunshine is having an issue. hmm

NullVoxPopuli commented 5 months ago

I'm starting to wonder if this is stemming from the last sunshine upgrade: 0.23.1 I wonder what I had before :thinking:

NullVoxPopuli commented 5 months ago

Also, apologies for opening this issue on moonlight-android.

can a maintainer move the issue to sunshine?

NullVoxPopuli commented 5 months ago

I updated Sunshine to v2024.609.234340, and the problem persists :thinking:

NullVoxPopuli commented 5 months ago

One thing I've noticed is that (during the frame rate drop) the frame rate client side is far below what the performance stats are saying it is. I experienced < 3fps, but the perf stats report up to 23fps (network, decode, and render). This observation was noticed at 4mbps.

NullVoxPopuli commented 5 months ago

Switching from Nvidia NVENC and the AMD encoder seems to also show no improvement.

NullVoxPopuli commented 5 months ago

I also tried switching to Geforce Gamestream (they brought it back?) and the problem also still persists.... so... not a sunshine issue then? maybe it really is my laptop / decoding. hmm

NullVoxPopuli commented 5 months ago

so maybe this issue should move to moonlight-qt?

NullVoxPopuli commented 5 months ago

ok.. I'm wired now and still have the same issue. def a software problem. hmm

NullVoxPopuli commented 5 months ago

That was a lie, I forgot to turn off wifi when trying. There is 0 problem when wired, so def not a software problem.

It's entirely a problem with my laptop's wifi.