Sunshine + Moonlight : A great free option for streaming games to TV/iPad/phone

m0h1t

drinks like a fish
Skilled
If you want to play PC games on your TV and/or tablet, try Sunshine (server) and Moonlight(client). I was surprised how smooth and latency free it is.

  • I don't feel like sitting in-front of the PC after work, with this setup I can easily play on the tv with headphones at night without bothering the family.
  • Both server and client are free. Moonlight client is available for all major platforms.
  • Works really well for me, sub-5ms latency, but there are two latency causing factors here (1) Network and (2) H265 decoding. Play around with the server and client setting to optimize for your hardware.
  • On the FireTV 4K Max, decoding latency is relatively high compared to nvidia shield and apple TV 4K , its fine but its not very smooth. ~10ms on FireTV 4K Max vs ~2ms on shield and apple tv.
  • It also works with both xbox and PS5 controller with vibrations. PS5 controller is emulated via ViGEmBus as an xbox controller so the keys show up as A,B,X,Y
  • You'll need good WIFI If you want to do this wirelessly, otherwise you can do this wired, which will also be cheap.


My setup:
  • PC : 5600x + 3080ti (wired)
  • Clients : Apple TV 4K (802.11ax 2x2 5Ghz) and Shield 2019 Pro (802.11ac 2x2 5Ghz)
  • Network : Asus ET8 + AC86U (asuswrt merlin)
 
Last edited:
If you want to play PC games on your TV and/or tablet, try Sunshine (server) and Moonlight(client). I was surprised how smooth and latency free it is.

  • I don't feel like sitting in-front of the PC after work, with this setup I can easily play on the tv with headphones at night without bothering the family.
  • Both server and client are free. Moonlight client is available for all major platforms.
  • Works really well for me, sub-5ms latency, but there are two latency causing factors here (1) Network and (2) H265 decoding. Play around with the server and client setting to optimize for your hardware.
  • On the FireTV 4K Max, decoding latency is relatively high compared to nvidia shield and apple TV 4K , its fine but its not very smooth. ~10ms on FireTV 4K Max vs ~2ms on shield and apple tv.
  • It also works with both xbox and PS5 controller with vibrations. PS5 controller is emulated via ViGEmBus as an xbox controller so the keys show up as A,B,X,Y
  • You'll need good WIFI If you want to do this wirelessly, otherwise you can do this wired, which will also be cheap.


My setup:
  • PC : 5600x + 3080ti (wired)
  • Clients : Apple TV 4K (802.11ax 2x2 5Ghz) and Shield 2019 Pro (802.11ac 2x2 5Ghz)
  • Network : Asus ET8 + AC86U (asuswrt merlin)
This is the option most switched to after Nvidia shutdown Gamestream. Sunshine is still not at the level of Gamestream but significantly better than Steam link or Parsec.
 
I tried moonlight some years back on a realme pro 2. The streaming pc had a gtx 1070.
The performance and the overall experience was superb. Viable alternative to handheld consoles.
 
I tried moonlight some years back on a realme pro 2. The streaming pc had a gtx 1070.
The performance and the overall experience was superb. Viable alternative to handheld consoles.
Have tried game streaming locally multiple times and it always feels off. Streaming over WiFi, even if the PC is wired, always creates that perceptible lag. The handheld craze now is mostly because you can play PC games natively. The streaming Android handhelds have really not done well.
 
Have tried game streaming locally multiple times and it always feels off. Streaming over WiFi, even if the PC is wired, always creates that perceptible lag. The handheld craze now is mostly because you can play PC games natively. The streaming Android handhelds have really not done well.
I have only tried single player games like Ryse: Son of Rome. Maybe that’s why I was fine with it.
What games have you tried with it?
 
Thanks for this. I didn't know this existed. I really need this so that I can play in my AC bedroom when the weather is hot. My gaming PC is in the drawing toom connected to TV and there's no AC there.

Will give it a try tomorrow itself.
 
I have only tried single player games like Ryse: Son of Rome. Maybe that’s why I was fine with it.
What games have you tried with it?
It has been months but it was probably Forza. The latency would probably in few tens of milliseconds, so probably wouldn't be a problem for most.
 
It has been months but it was probably Forza. The latency would probably in few tens of milliseconds, so probably wouldn't be a problem for most.
With sunshine and moonlight, if latency is 8-10ms then either the hardware is not good or not optimised. I have it running at 3-5ms.

edit: I meant locally. Multiplayer or remote would certainly add more latency.
 
Not just great for gaming, you can use your tablet as secondary touch display.

Screenshot 2023-07-10 115525.png
 
This sounds interesting, can you give some details on how you did this?
Hi @gourav and @Emrebel

If your intention is to simply duplicate your PC display on the Moonlight client, you can easily achieve that without any additional steps. However, if you prefer to utilize your Moonlight client as a secondary (extended) display with a customized resolution that matches the client's resolution, you can refer to the below guide:

1. Creating virtual monitor with custom resolution - follow part 1 and 2
2. Adding new app for auto adding and removing virtual monitor when the moonlight client starts and ends session.
3. Make sure the virtual monitor is set as primary monitor.
1689093185324.png

1689093077154.png



1689093136158.png
 
There is a way to make 2 people use single CPU like 2 different CPUs, with Parsec.

for example: one user trading / browsing on monitor and 2nd user streaming games / editing videos on TV over LAN / Internet simultaneously but both using resources from same CPU.

For this to work with minimal lag you need:

1) Processor powerful than 4th Gen i7 and atleast 16GB RAM
2) A good graphics card depending on gaming/editing needs (atleast GTX 1060 or RX 570)
3) Any PC / Laptop / Phone that runs Parsec (sadly Android TV OS /MiBox / TV Sticks dont support Parsec)
4) Dummy HDMI plug (available at Amazon)
5) ibik Aster license ( this is available on 15 days trial period)
6) Parsec + Parsec account
7) Broadband for Remote streaming and Dual band router for Local Streaming
8) Extra Keyboard & Mouse for 2nd user

Because of lag, this setup is not suitable for competitive FPS games . Let me know if anyone is interested. I`ll make a guide.
 
Just a few notes for anyone trying this is on Apple TV. Could help on other devices also.
  • Airplay was somehow causing stuttering for me. Turning it off reduced the stuttter and lag quite a bit
  • 1440p stream on moonlight (with 1440p in game settings) was significantly more blurry than a 4K stream.
  • Reduced FEC Percentage to 15%
  • Since I knew my wifi was solid and I had headroom there, I put ‘Single-frame VBV/HRD percentage increase’ to 100. You‘ll need to play with this depending on your wifi config.
  • Playing Control for the 2nd time on 4K+DLSS in all RT glory with 4K/60FPS stream and 150mbps bitrate setting. Lag free and sharp.
 
I have been using this for the last few years now.
In fact this helped me finish plenty of games that I would have never otherwise been able to.

It's very difficult for me (and i presume other older/married folks) to take out dedicated time to go sit in my den hunched over a PC playing games...
This usage pattern is far more casual and easy to take time out for


For a long time, I used A cheap telescopic controller plus phone gripped in it for some casual story mode games on the bed before sleeping. While I use a fold 4 now, even normal 6+ inch phones are ok for many games
Alternatively, I use a Tab plus normal controller on the dining table/ elsewhere in home
Added bonus is that i end up getting much nicer HDR in games vs the PC monitor

Got an ally later last year - I use moonlight while at home and continue it local while travelling.

PS: I have not yet shifted to Sunshine - still using moonlight with the last nvidia driver that supports GFE
Will have to eventually shift to sinshine but lets see
 
Back
Top