1. rock88

    OP rock88 Advanced Member
    Newcomer

    Joined:
    May 19, 2018
    Messages:
    78
    Country:
    Russia
    [​IMG]

    I think port already done for public release, so let's get started :yayswitch:

    Features
    • 720/1080p&30/60fps streaming;
    • Rumble support :toot:
    • Good audio;
    • Mouse/scroll support;
    • Customizable button mapping and combo keys for each game.
    Installing
    1. Download latest Moonlight-NX release or automatic build (require github login for artifacts link appear);
    2. Put moonlight.nro to sdcard:/switch/moonlight;
    3. Launch hbmenu over Title Redirection (for FULL RAM access);
    4. Launch moonlight.
    Setup Guide
    1. Firstly check official Setup Guide;
    2. Connect your PC and Switch to same WiFi network (Use 5GHz for best performance);
    3. In Moonlight-NX push 'Add new host' button and enter your PC IP address;
    4. Pair Moonlight-NX with your PC.
    Controls (Defaults)
    1. Move cursor with move finger on touch screen;
    2. Scroll with two fingers;
    3. L/R + tap on screen - Left/Right mouse click (allow to move cursor);
    4. ZL/ZR + tap on screen - Left/Right mouse click (without move cursor);
    5. L+R+Down - exit from stream (and close current app);
    6. L+R+Up - exit from stream (without closing current app);
    7. L+R+Left - Alt+Enter (for enable/disable fullscreen mode);
    8. L+R+Right - ESC key;
    9. ZL+ZR+Left - show video decoder/render stats;
    10. ZL+ZR+Right - hide video decoder/render stats;
    11. Minus+Plus - Guide button;
    Known bugs
    1. Partial gamepad input in UI (Doesn't work with combobox popups, alerts can close by press B button);
    2. Audio can freezes/crashes and app can freezes on a stream exit;
    3. Mouse/scroll doesn't work in docked mode (because required interaction with touch screen).

    Sources and Build Instructions:
    https://github.com/rock88/moonlight-nx
     
    Last edited by rock88, Jun 13, 2020
    Starliight, Cubuss, Fgamer and 28 others like this.
  2. LiveMChief

    LiveMChief Advanced Member
    Newcomer

    Joined:
    Apr 11, 2020
    Messages:
    58
    Country:
    United States
    Nice! Going to give this a go right now.
     
  3. rock88

    OP rock88 Advanced Member
    Newcomer

    Joined:
    May 19, 2018
    Messages:
    78
    Country:
    Russia
    I released new update 1.0.5 :toot:

    Changelog:
    • Stop rumble after stream will terminate;
    • Allow to select audio driver in Settings (Audren is better, but not always working);
    • Allow to select audio delay (for some reason Audren driver start working with value 50, but sometime work with lower value);
     
    hippy dave likes this.
  4. masagrator

    masagrator The developper
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,071
    Country:
    Poland
    How performance looks like with different clocks?
     
  5. rock88

    OP rock88 Advanced Member
    Newcomer

    Joined:
    May 19, 2018
    Messages:
    78
    Country:
    Russia
    I don't use overclock (or underclock). With default clocks in handheld mode average decoding time is 10ms (720p, instead of 3-4ms in Lakka-Switch), so, in theory, with default clocks Switch can decode 100 frames per one second.
     
    masagrator likes this.
  6. masagrator

    masagrator The developper
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,071
    Country:
    Poland
    Well, so it's the same as moonlight on Switchroot android in decode time.
    Good job in handling this.
     
    Last edited by masagrator, May 24, 2020
    Broduskii likes this.
  7. Lexyn

    Lexyn Newbie
    Newcomer

    Joined:
    May 26, 2018
    Messages:
    8
    Country:
    Spain
    It works on SX-os? always got froze for me and i have to restart my switch
     
  8. masagrator

    masagrator The developper
    Member

    Joined:
    Oct 14, 2018
    Messages:
    3,071
    Country:
    Poland
    You did it as in instruction?
     
  9. Lexyn

    Lexyn Newbie
    Newcomer

    Joined:
    May 26, 2018
    Messages:
    8
    Country:
    Spain
    Yes

    EDIT: I cant make it work with atmosphere neither so maybe is just me, im in 10.0.0 i dont think is that
     
    Last edited by Lexyn, May 24, 2020
  10. JonJaded

    JonJaded GBAtemp Fan
    Member

    Joined:
    May 22, 2016
    Messages:
    445
    Country:
    United States
    Looking good, will test it out!
     
  11. Broduskii

    Broduskii GBAtemp Regular
    Member

    Joined:
    Jul 2, 2014
    Messages:
    153
    Country:
    United States
    WOW thank you so much <3
     
  12. Rigle

    Rigle GBAtemp Regular
    Member

    Joined:
    Apr 15, 2008
    Messages:
    158
    Country:
    Spain
    Thank you so much, I'm going to try it! :)
     
  13. Alvsar

    Alvsar Newbie
    Newcomer

    Joined:
    May 3, 2020
    Messages:
    6
    Country:
    United Kingdom
    I have tested with Sxos and I confirm it works great. 720p and 60fps (real ones), also rumble works. The only issue is the audio which has lag and I had to select the other option (I don't recall the name) because the one suggested didn't work for me.
    I tested Resident Evil 2, RE 7, Street Fighter V and emulators like dolphin and citra. All good.
    It is great. Thanks!!!
     
  14. ZeroFX

    ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    148
    Country:
    Japan
    Nice job, i'll check it out.
     
  15. Rigle

    Rigle GBAtemp Regular
    Member

    Joined:
    Apr 15, 2008
    Messages:
    158
    Country:
    Spain
    I'm using 9.2.0 and 0.12.0 and I found some stuff:
    • If you connect it in the Dock, you can't do anything until you undock it (because you can't touch it). Maybe it would be nice to have some popup to advise you to undock it.
    • I was able to connect once, but the screen got frozen and I couldn't do anything. After that, I couldn't reconnect to the same PC until I rebooted it.
    Is there a way to send you logs or better information about errors?

    Thanks in advance for the job done!
     
    pOOB73 likes this.
  16. pOOB73

    pOOB73 Member
    Newcomer

    Joined:
    May 27, 2018
    Messages:
    39
    Country:
    Germany
    Managed to set it up easily and connect to Nvidia Experience, too. Only when going into Steam and trying to start a game it got stuck.
    Quitting the app on Switch made it crash. After restarting the Switch client I could connect to PC host, but not stream anything.
    Will try again today with maybe restarting host PC and different games.

    9.2.0 and 0.12.0 here.
     
  17. ZeroFX

    ZeroFX Eh. What?
    Member

    Joined:
    Jun 18, 2018
    Messages:
    148
    Country:
    Japan
    Checked, and it is on par with Moonlight qt on Ubuntu (video wise), noticed an typo on "Applications", and as soon as I paired my PC the app crashed, but then worked fine, I liked the control scheme and the ability to toggle performance overlay on the fly.

    Talking about it, my first test with default settings only: video is awesome, 4ms average on decoding and rendering at 720p60fps 10mbps.

    Audio was a nope using audren, but audout is working, with noticable delay (I expected by looking on settings page) and hiccups, lowering to 10 wasnt bad, and it had same occasional hiccups as default (I have a somehow beefy router.).

    H265 was a glitchy mess, with a lot of drops and huge ms. But I reckon it is probably there as experimental.

    Upping the res to 1080p40mbps (bit too much of bitrate ik) got me 6ms of decoding, and 2ms of receive time (I was getting 0.6ms).

    Hope you keep maintaining this project, good job.

    Edit: forgot to mention that I was plugged on the wall and with OC at max, you need some OC to make it playable.
     
    Last edited by ZeroFX, May 25, 2020
    lordelan and rock88 like this.
  18. rock88

    OP rock88 Advanced Member
    Newcomer

    Joined:
    May 19, 2018
    Messages:
    78
    Country:
    Russia
    Currently UI don't handle gamepad input, but I work on this. Also UI not optimised for docked mode (hardcoded internal resolution to 1280x720), I'll fix it in next releases.

    You can run Moonlight-NX over nxlink (but needs install pacman and switch-tools firstly), see run.sh (only line 5).

    Yep, normal quit is a PLUS button press in main menu, but currently it crashed app, I just move to Home menu and close app by press X. Will try to fixed it in next releases.

    My Switch on a latest firmware (10.0.2) and Atmosphere 0.12.0.
     
    pOOB73 likes this.
  19. mss1988

    mss1988 Member
    Newcomer

    Joined:
    Jul 25, 2018
    Messages:
    40
    Country:
    France
    Although still very buggy, this homebrew has very high potential. Excellent work bro :)
     
    rock88 likes this.
  20. zniel0

    zniel0 Advanced Member
    Newcomer

    Joined:
    Aug 13, 2018
    Messages:
    77
    Country:
    United States
    Does not allow you to connect to an offline router:( only an online router will work. This limitation needs to be bypassed.
     
Draft saved Draft deleted
Loading...

Hide similar threads Similar threads with keywords - Moonlight, Nvidia, Stream