moonlight-stream / moonlight-android

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

[Issue]: Network stuttering occurs every ten seconds #1269

Open SakiBiAnNya opened 7 months ago

SakiBiAnNya commented 7 months ago

Describe the bug

Every ten seconds there is a network frame drop, and the average latency also increases. On the same internal network, PC uses 2.5GbE wired Ethernet, mobile phone uses wifi6 network connection, both change to better routers, change other mobile phones and switch between win10 and win11 systems, mobile phone turns on airplane mode and turns off location are invalid, but PC uses wifi (device Intel wifi ax210) connection is normal. I don't know which one is the hardware or software issue, I have tried my best to eliminate the factors

Steps to reproduce

PC uses 2.5GbE wired Ethernet,

Affected games

All

Other Moonlight clients

PC

Moonlight adjusted settings

Yes

Moonlight adjusted settings (please complete the following information)

1080p,120hz,50Mdps

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

Android 13

Device model

Redmi k40

Server PC OS version

win10 pro 22h2、win11 pro 22h2

Server PC GeForce Experience version

3.27.0.112

Server PC Nvidia GPU driver version

546.01

Server PC antivirus and firewall software

Huorong

Screenshots

@}YW595CRTN%$UI)B KMEYB LYIWQ$M16189F7$USKTT`$4

Relevant log output

No response

Additional context

No response

pieresoft commented 6 months ago

same here, but it works on IOS devices, what's wrong with Android

SakiBiAnNya commented 6 months ago

same here, but it works on IOS devices, what's wrong with Android

I tried several mobile devices with my friends and found that only my Redmi K40 had this problem. Other mobile devices played normally and found a bug between the software and hardware. I thought it was a bug caused by the miui system, and then wrote the K40 back into the system ROM, but the same problem still occurred

pieresoft commented 6 months ago

same here, but it works on IOS devices, what's wrong with Android

I tried several mobile devices with my friends and found that only my Redmi K40 had this problem. Other mobile devices played normally and found a bug between the software and hardware. I thought it was a bug caused by the miui system, and then wrote the K40 back into the system ROM, but the same problem still occurred

My devices: Oneplus 9RT (Android 13) ,iplay mini pro (Android13), Sony 8' old tablet (Android 6.01) all the same issue

SakiBiAnNya commented 6 months ago

same here, but it works on IOS devices, what's wrong with Android

I tried several mobile devices with my friends and found that only my Redmi K40 had this problem. Other mobile devices played normally and found a bug between the software and hardware. I thought it was a bug caused by the miui system, and then wrote the K40 back into the system ROM, but the same problem still occurred

My devices: Oneplus 9RT (Android 13) ,iplay mini pro (Android13), Sony 8' old tablet (Android 6.01) all the same issue

Brother, I have found the problem. It is my phone's system that has lowered the power consumption of WiFi a bit. When I opened another mobile hotspot, there was no streaming lag. WiFi and mobile hotspot were both turned on, but turning off the hotspot only left the WiFi function, and the problem reappeared

qiaolu0124 commented 6 months ago

same here, but it works on IOS devices, what's wrong with Android

I tried several mobile devices with my friends and found that only my Redmi K40 had this problem. Other mobile devices played normally and found a bug between the software and hardware. I thought it was a bug caused by the miui system, and then wrote the K40 back into the system ROM, but the same problem still occurred

My devices: Oneplus 9RT (Android 13) ,iplay mini pro (Android13), Sony 8' old tablet (Android 6.01) all the same issue

Brother, I have found the problem. It is my phone's system that has lowered the power consumption of WiFi a bit. When I opened another mobile hotspot, there was no streaming lag. WiFi and mobile hotspot were both turned on, but turning off the hotspot only left the WiFi function, and the problem reappeared

I also use Redmi K40 (Android13), all the same issues no wonder Nvidia's GameStream host or sunshine host, but mobile hotspot didn't work for me. And my old device Mi8 (Android) worked fine, although the average decoding time was more than four times that of the redmi k40.

ahrys-serve commented 6 months ago

Similar behaviour I see with casting from PC (2.5GE connection) to Chromecast w/GoogleTV where moonlight is installed. Periodically I see short spikes of lost packets (up to 50%). After 3-4 times of these spikes decoding time became slower (from 7 ms avg to 14 ms avg). Only restarting app helps.

tvoracek commented 3 months ago

Same issue on my end, although stutters happen every minute or so, sometimes every 30secs... Shield 2017, Moonlight as client. PC with 2.5Gb NIC.

FPS set to 60fps/hz in Sunshine and Moonlight.

a83877507 commented 1 month ago

LZ解决了吗,一样的红米K40,我觉得是miui的问题