Homebrew RELEASE Moonlight-libretro core for Lakka Switch

  • Thread starter Thread starter rock88
  • Start date Start date
  • Views Views 25,117
  • Replies Replies 45
  • Likes Likes 14
@mss1988, you are right, I checked - currently it's used software decoding :sad: I'll try to use hardware decoding over VDPAU, but no sure about NVDEC.
Maybe software render
This is really cool. I set 720p/60 fps and 16.5 mb/s and got some bad blocking and flashes of grey screens. These were 100% fixed by raising CPU overclock to boost (1200ish). Games look and sound beautiful and input lag is truly minimal.

A little inconvenient launching lakka but the results are excellent. I hope one day it can come to horizon.
That explain why on the same wifi I can push more the bandwith that my brother on his switch, I have the cpu clock at 1785mhz on lakka. So if gpu acceleration solution it's possible then maybe we can push the bandwitch even more without cpu overclock
 
For some reason, my controls are not working.I can't scroll to select a game or anything. The only thing that works is the touch screen to select a game, but when I touch one of the games, it just loads my desktop and doesn't launch the game.
 
You have to touch the scroll bar on the right to scroll, no amount of swiping the games list is going to work.
 
Does moonlight in lakka work better than Skynx in Horizon OS? In Skynx, even if the program says 60fps, in Switch I only get 30fps (pretty noticeable).
Is the same with Moonlight in Lakka? For some reason Lakka is not launching for me anymore
 
Does moonlight in lakka work better than Skynx in Horizon OS? In Skynx, even if the program says 60fps, in Switch I only get 30fps (pretty noticeable).
Is the same with Moonlight in Lakka? For some reason Lakka is not launching for me anymore

Idk for SkyNX, so far (unfortunately) it works the best under Android.
 
Is it possible to use the Joy-Cons as a controller without being in a game first?
RetroArch has core named Remote RetroPad, but (I think) it works only with remote RetroArch.
Moonlight-libretro should run app for setup remote connection and handle input, but I can add feature for disable audio/video, and just use Switch as a remote gamepad.
Also you can add some unused app (like a default File Explorer) in GF Experience stream settings, for start stream, then close this app and run any other app that you prefer.
 
RetroArch has core named Remote RetroPad, but (I think) it works only with remote RetroArch.
Moonlight-libretro should run app for setup remote connection and handle input, but I can add feature for disable audio/video, and just use Switch as a remote gamepad.
Also you can add some unused app (like a default File Explorer) in GF Experience stream settings, for start stream, then close this app and run any other app that you prefer.

I actually meant that I wanted the computer to recognize that the Joy-Cons were controllers all of the time (instead of using them for mouse clicking), even if you use an app to go to desktop.
I still want the audio and video to be on the Switch's screen.
When I start a controller mapping program, the Joy-Cons do not appear.

I am sorry for not being more clear, but I do not know how to explain this better.
 
Last edited by Kotomine Kirei,
When I start a controller mapping program, the Joy-Cons do not appear.
Joy-Cons not appear because Nvidia stream app create and use emulated XInput gamepad (like a X360 controller). I checked that in online gamepad tester app (just google some like 'xinput gamepad test online'), and all works.
 
Joy-Cons not appear because Nvidia stream app create and use emulated XInput gamepad (like a X360 controller). I checked that in online gamepad tester app (just google some like 'xinput gamepad test online'), and all works.

When I went to the online gamepad testers, they said that there was no controller connected.
I guess that there must be a problem with my Joy-Cons or something, but I am not sure what is wrong.
The mouse movement (touchscreen), clicking (L/R/ZL/ZR) and other functions work fine.
 
When I went to the online gamepad testers, they said that there was no controller connected.
I guess that there must be a problem with my Joy-Cons or something, but I am not sure what is wrong.
The mouse movement (touchscreen), clicking (L/R/ZL/ZR) and other functions work fine.
May be on your PC installed some gamepad software which conflicted with Nvidia GameStream? Also check this thread - https://www.nvidia.com/en-us/geforc.../no-gamepad-input-working-through-gamestream/.

I saw that moonlight on L4T Ubuntu now support hardware acceleration decoding, maybe this can be useful to look how it's implemented?
I look at it about last few days, and started refactoring current stream related sources for use with VDPAU :)
 
Okay, I'll check VDPAU support and it doesn't work :(

Code:
Lakka:~ # vdpauinfo
display: :0.0   screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

Seems like just need set correct libvdpau_xxx.so lib, I found few (libvdpau_nouveau.so.1 and libvdpau_tegra.so.1) in toolchain dir, and try to use:

Code:
Lakka:~ # export VDPAU_DRIVER=tegra
Lakka:~ # export VDPAU_DRIVER_PATH=/storage/cores
Lakka:~ # vdpauinfo
display: :0.0   screen: 0
Error creating VDPAU device: 23

Also doesn't work and I don't know why(( May be Lakka-Switch incorrect initializing video driver, incorrect libvdpau_nouveau/libvdpau_tegra or some else...

Anyway I released 1.0.3 update:
Latest FFMPEG lib (grab moonlight_libretro_latest_ffmpeg.zip, I don't know about speedup, see decode stats...);
Settings for select number of threads using for decode a video frame;
Show video decoder/render stats, by pressing ZL+ZR+Left, ZL+ZR+Right for hide.

After this I want to make port on a Horizon OS :)
 
Okay, I'll check VDPAU support and it doesn't work :(

Code:
Lakka:~ # vdpauinfo
display: :0.0   screen: 0
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

Seems like just need set correct libvdpau_xxx.so lib, I found few (libvdpau_nouveau.so.1 and libvdpau_tegra.so.1) in toolchain dir, and try to use:

Code:
Lakka:~ # export VDPAU_DRIVER=tegra
Lakka:~ # export VDPAU_DRIVER_PATH=/storage/cores
Lakka:~ # vdpauinfo
display: :0.0   screen: 0
Error creating VDPAU device: 23

Also doesn't work and I don't know why(( May be Lakka-Switch incorrect initializing video driver, incorrect libvdpau_nouveau/libvdpau_tegra or some else...

Anyway I released 1.0.3 update:
Latest FFMPEG lib (grab moonlight_libretro_latest_ffmpeg.zip, I don't know about speedup, see decode stats...);
Settings for select number of threads using for decode a video frame;
Show video decoder/render stats, by pressing ZL+ZR+Left, ZL+ZR+Right for hide.

After this I want to make port on a Horizon OS :)

If hardware decoding it's not possible then a horizon os version will be great! No need to launch lakka and the same performance that actual lakka version after all.

Thank you so much for your effort!
 
  • Like
Reactions: rock88
I saw that you made Fork to the Lakka-Switch repo and it has added several improvements and Core of the source repository. Are you planning to make some corrections? Can it be compiled?
 
  • Like
Reactions: klear and Broduskii
I saw that you made Fork to the Lakka-Switch repo and it has added several improvements and Core of the source repository. Are you planning to make some corrections? Can it be compiled?
I just merged last official repo to lakka-switch, but after that I had tons of conflicts, which I not resolve properly. So currently it is not compiled :(
 
  • Like
Reactions: klear and Naminave
PC streaming, the same as the last homebrew that 'doesnt do anything for you'.

I feel stupid but what is PC streaming ? You run PC games from PC and stream to your Nintendo Switch ? Or you are able to run PC games onto your Switch like PC but use Moonlight ?
 

Site & Scene News

Popular threads in this forum