jamesstringerparsec / Easy-GPU-PV

A Project dedicated to making GPU Partitioning on Windows easier!
4.24k stars 427 forks source link

geforce experience streaming + moonlight #94

Open KeenMaron opened 2 years ago

KeenMaron commented 2 years ago

Hi!

Is it possible to use geforce experience and moonlight (as client) to stream the games from the VM? In my experience the video qualilty is better than parsec.

strategicmaniac commented 2 years ago

I've gotten it to work with steam link, but that required going to device manager and enabling "Microsoft Hyper-V Video," as the image will default to 1024x768. However, this is NOT recommended by the creator of the utility as it may cause problems. Proceed with caution and try to use Moonlight on the VM first before continuing with this.

KeenMaron commented 2 years ago

Ok thank you for the reply, maybe i will give it a try.

mcbane1981 commented 2 years ago

I am also interested in this feature. Any luck running GFE + Moonlight?

KeenMaron commented 2 years ago

I am also interested in this feature. Any luck running GFE + Moonlight?

Hi mcbane 1981, i tried to install GFE without driver on the VM but it didn't work. Maybe someone has a idea how to install it :)?

cycledetector commented 2 years ago

You should take a look at this project: https://github.com/loki-47-6F-64/sunshine

It implements Nvidia's GameStream protocol, thus you don't need to install Geforce Experience. It takes a bit of time to setup compared to Nvidia's official implementation but I have tried it in Hyper-V and it works fine for the most part. Just make sure to install it as a service.

mcbane1981 commented 2 years ago

Thank you for the reply! I will give it a try.

KeenMaron commented 2 years ago

@cycledetector does it work with your hyper-v vm? I installed sunshine as in the instructions. If i try to connect with moonlight the screen is completely white. I can hear the sound. Few moments later moonlight stops the stream with the information, that my ports aren't open for video data. I have disabled the firewall in the vm. Any ideas?

KeenMaron commented 2 years ago

Update: I've disabled the parsec display adapter and activated the hyper v display adapter. Now I get a video stream in moonlight with sunshine. But the experience is not that good as with parsec :(. Sometimes stuttering, kind of lag. Maybe someone can post his / her experience so far.

cycledetector commented 2 years ago

My experience is pretty much the same with Parsec. The only drawbacks I can notice is a lag in my mouse movements when I'm not doing something in a fullscreen application (e.g. desktop) and a slight delay when a UAC prompt appears. Other than that, it works fine, considering that sunshine is an unofficial GameStream implementation.

Some useful tips:

  1. Always use the basic session in Hyper-V.
  2. If you get a white screen, connect to your machine, leave the window open in the background and then switch to Moonlight (sometimes it needs some kind of input; move your mouse for a bit).
  3. Turn on Frame pacing in moonlight, it reduced the lag/stuttering considerably (tested in 1080p/60fps with a video bitrate of 150 Mbps).
  4. Install sunshine as a service by running the install-service.bat located in the sunshine top-level directory directory.

On another note, you don't have to build sunshine; you can grab a Windows binary from here: https://github.com/loki-47-6F-64/sunshine/releases/download/v0.11.1/Sunshine-Windows.zip

timminator commented 2 months ago

I've created a project called Enhanced-GPU-PV that lets you install Sunshine instead of Parsec and sets up a permanently connected virtual display. This should solve the poblem mentioned in this thread. If anyone is interested, please check it out!