moonlight-nx
moonlight-nx copied to clipboard
Freezes often
It seems to me that the app freezes often, especially when different settings other than the default ones are use. For example 1080p res, HEVC or bitrates other than 10mbit. HEVC has also weird artifacts.
PS: Geforce Experience does not adjust the resolution to e.g. 720p within the game. When I use moonlight on my phone it does.
GPU: 2080 TI Network: 5 GHz
Besides all this, great work.
With the latest audio update came freezes, grey screen and crashes, I'll check what wrong soon. HEVC is experimental feature and added just for test it, so no need use that.
GF Experience set resolution to 720p in some games (for me it's GTA5, for example), also I'll check for force set resolution same as stream resolution.
I think the grey screen issue may be due to setting CAPABILITY_REFERENCE_FRAME_INVALIDATION_AVC | CAPABILITY_REFERENCE_FRAME_INVALIDATION_HEVC
on https://github.com/rock88/moonlight-nx/blob/7bc08cf767e59d43456c9b00e1c1da06a1384f65/src/streaming/ffmpeg/FFmpegVideoDecoder.cpp#L189
The FFmpeg decoder doesn't support reference frame invalidation for HEVC at all, and for AVC (H.264) it is unreliable. Attempting to use it will cause graphical corruption and freezes due to corruption of the internal decoder state when the network drops video packets.
The resolution issue is because you set sops = false
on https://github.com/rock88/moonlight-nx/blob/7bc08cf767e59d43456c9b00e1c1da06a1384f65/src/streaming/GameStreamClient.cpp#L164
SOPS (Streaming Optimal Playable Settings) is what triggers GeForce Experience to adjust the game settings to match the stream.
Also I'd recommend setting gamepadMask = 0x1
there so GeForce Experience will plug in the virtual gamepad for player 1 before the stream begins (some games don't properly detect gamepads plugged in after they start).
Edit: Also you can simulate bad network conditions by running Clumsy on your host PC. You can set the filter to the udp.SrcPort == 47998
and enable the drop option with various chance values.
I made few fixes in 1.0.8, thanks to @cgutman! Later I'll test bad network and audio freezes/crashes.
Could this have anything to do with the OS? I'm pretty new to the switch and updating the CFW requires some serious fiddling. I'm running 9.2.0 with AMS 0.10.3. The exact version according to the system is 9.2.0|AMS 0.10.3|E
I noticed the performance upgrade warning in Moonlight, but given how complicated it is, I'll try to stay away for now, until possible. Is the freezing issue occurring on the latest version of the OS as well?
is the freezing issue occurring on the latest version of the OS as well?
Yes.
I've noticed three distinct types of freezing on v1.1.0:
- Video only freeze (most frequent for me) - I can hear feedback that my controls are still going through to the PC game
- Total freeze - everything stops up, sometimes accompanied by "Bad connection..."
- Controller only freeze - game video and audio continues but controls have no effect
For all of these, going Home and quitting the app and restarting Moonlight will fix it for another 5 minutes or so.
btw this project is awesome! thanks for your work
Just want to add to this, I also get the video freezing on the latest update, only able to play for 5ish minutes until the switch video freezes and then I have to restart everything.
Using the latest automatic build on AMS 0.13 and FW 9.2.0, I always experience the freezes and disconnects if starting a game stream in 720p with all default settings. But if I use 1080p the stream starts fine without issues. So once I am streaming 1080p in game I just press L + R + up and set the resolution down to 720p for smoother frame rates and reconnect to the game. So far I can play normally this way (I tested for 20 minutes without any freezing or disconnect). Also disabling all sysmodules seem to really help with the stability.
I often get freezes, image only. The sound continues, input is still received, but the image freezes. Can't exit / exit+close out of the session at this point either. I just kill the program (which never closes gracefully btw, requiring I reach a stock error screen) and try again. At some point it seems to hold for a very long time / indefinitely.
And I've found HEVC's performance unusable. H264 works well though, when it's working.
Latest drivers and GFE as of this date. 720p@60hz, 10mbit. Atmosphere 0.14.4 / fw 10.2.0
hi guys, i'm on 10.0.4|AMS 0.13.0|E and with the latest version of moonlight after a few minutes, the screen would lock up but sound continues to play, (Dolphin emulator or any other stream games.) other times the sound would switch off and video stream continues.
Any workaround to this? i am haveing to play remotely due to the covid lockdown, :(
thanks in advance
Updating to latest atmosphere 0.15 AMOS custom firmware, and updating emunand to 10.2.0, and updating hekate, copying latest fusee premier and finally copying all the signpatch files, and updating bootloader files fixed it. If anyone needs a step by step, drop me a line at Gbatemp.