moonlight-stream / moonlight-android

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

Random rendering framerate slowsdown after a while on Nvidia Shield #1319

Open xenophobentx opened 3 months ago

xenophobentx commented 3 months ago

Describe the bug

Tested on Nvidia Shield 2019 TV and Nvidia Shield 2019 Pro booth have the very same behaviour.

Tested with Shield experience 9.1.1 and Shield Experience 8.2.3 versions (Android 9 and 11)

Tested with older moonlight versions by installing older releases on the boxes.

Everything wired with gigabit, network latency is 1ms as per stats screen.

On host: V-sync off framrate capped to 60 by Rivatuner or Nvidia control panel

Client: 1080p@60fps@25Mbps Framepacing: Prefer Minimal latency (Default)

Even on a fresh install of Shield and an older one behaves the same.

Testing on a windows client the issue is not reproducible in the very same setup. (Same TV same Ethernet cable), that way it just stay smooth as expected.

Steps to reproduce

Start the stream and a game, buttery smooth experience no hiccups.

Play for a while and you will notice that somehow the rendering framerate drops almost to 30ish level despite the facts that the overlay says it there is no drop in network host or client framerate or decoding latency, but you will feel and see it it becomes choppy like it cannot render the frames in time.

Exit moonlight back to stream itt will be smooth again for a while. It seems that the issue is triggered by scenes when a lot of happening like explosions(my go to test game is DOOM 2016 ) but as it is random it is hard to predict.

Tried with x264 and HEVC booth one can reproduce this. Different TV/Monitor it still reproducible.

Affected games

All

Other Moonlight clients

PC

Moonlight adjusted settings

Yes

Moonlight adjusted settings (please complete the following information)

I've just adjusted the resolution to 1080p and bandwith to 25mbps

Moonlight default settings

Yes

Gamepad-related connection issue

No

Gamepad-related input issue

No

Gamepad-related streaming issue

No

Android version

9 and 11

Device model

Nvidia Shield 2019 TV and Nvidia Shield 2019 Pro

Server PC OS version

Windows 10

Server PC GeForce Experience version

3.27.0.120 but also reproducible with latest Sunshine

Server PC Nvidia GPU driver version

3.27.0.120

Server PC antivirus and firewall software

nope

Screenshots

cannot screenhot

Relevant log output

i don't know what to capture here.

Additional context

No response

StanLindsey commented 2 weeks ago

I have this happening on my steam deck. Which obviously isn't Android, steam decks frame rate goes wild (from north 100 fps down to single digits). Closing and reopening the client stream fixes it, usually for the rest of the session.

I don't get it on my other devices. But I'm testing the HDR build on the steam deck so could be completely unrelated.