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

Displays disconnect after some time and become CPU-intensive #100

Open MysticMia opened 3 weeks ago

MysticMia commented 3 weeks ago

I use this driver to get 2 extra monitors in addition my one hardware monitor. It is very useful in VR, and typically works without issues. Since installing the driver on 17 May, I've ran into this issue at least 3 times.

After playing VR for some time (4d15h according to task manager), I will get a short lag spike and all displays turn gray on my VR overlay (OVR Toolkit). The "display disconnected" noise is played by Windows, and roughly a second later, they all automatically reconnect again. After reconnecting, the 'Windows Driver Foundation' process tends to hover between 1% and 16% CPU usage for a minute (taskmanager) (intel i7-14700K). Some time later, this decreases to between 3% and 7% CPU. It also uses 13-18MB of memory.

Disabling the driver in device manager drops the CPU usage to a consistent 0%, and memory to 2.2MB. Reactivating it brings it back to 3-7% CPU and 13-18MB memory.

Restarting the PC typically resets this issue, but it tends to happen again within a few days.

I added some resolutions and framerates in my options.txt file but didn't change anything else. I'm using Windows 11 (Home?), not activated yet.

Connected monitors:

Hardware:

Typically open applications: Task manager, File Explorer, Firefox, Discord, Spotify, Steam, SteamVR, Visual Studio (Code), VRCX, VRChat, OVR Toolkit, fpsVR, Command Prompt. Sometimes Unity These programs tend to have been open for a while. This issue occurred while simply scrolling through a webpage.

MysticMia commented 2 weeks ago

After a restart, the CPU consumption is 1.5 - 5% (with spikes of 8%) with 12-14MB memory. A morning after, the CPU-usage seemed steady around 0-1.1% (with spikes of 1.7%) with 14-18.5MB memory. In the afternoon, now using the overlay more intensely after sleeping in vr, the CPU usage rose to be an average 1-5% (with spikes of 8%) with 14-17MB memory. The day after, after idling my pc outside of vr, the CPU of the Windows Driver Foundation was at 14-25% again.

bud3699 commented 2 weeks ago

By any chance if your boot GPU set to your IGPU instead of your actual gpu ?

MysticMia commented 2 weeks ago

On my desktop pc, I only have my 4070 Super, no iGPU