itsmikethetech / Virtual-Display-Driver

Add virtual monitors to your windows 10/11 device! Works with VR, OBS, Sunshine, and/or any desktop sharing software.
1.94k stars 89 forks source link

vsync is always on #68

Open ody opened 2 months ago

ody commented 2 months ago

I was troubleshooting Sunshine streaming at 120fps while using this virtual display driver and found that if you request 120fps you can only ever get 60 on resolutions above 1080p with stock driver configuration. The solution to run a Sunshine stream at 120fps is to add a 120hz resolution to options.txt for any resolution you want to utilize at 120fps.

I looked through the code but am unfamiliar with windows driver development to be 100% sure but I believe that the driver has hardcoded vsync on. This is further confirmed by in game behaviors, if you delimit in game fps then the game fps will remain locked to vdd refresh rate. Dummy plugs don't have this issue, they respect the gpu and in game settings.

Can the vdd be updated to respect either the GPU or game's vsync setting?