I'm trying to figure this out - it has been a bit of a head scratcher.
Essentially, if I have SteamVR running, I get a significant impact to render time when the game is in focus, even when system appears to have plenty of headroom. If I am alt-tabbed from the game however, the game streams smoothly and the render times are much reduced.
I have done a fresh reinstall of OBS to ensure it wasn't some garbage in my plugins/previous config.
For the example game, I'm using Squad which isn't a VR game, but just serves as an example for when SteamVR is/isn't running. The same problem is present with other games, and basically makes it impossible to stream VR titles.
For testing, my streaming settings are using x264 with what I believe are just the default settings. I have an i9-9900k and plenty of spare CPU resource so that won't be a bottle neck. I have tried using nvenc and quicksync, and get the same results.
The numbers,
If I look at my system resources, my CPU usage never goes above 40%, and my GPU at around 65%.
OBS process priority is set to 'High' to try and ensure it's keeps things smooth.
Any ideas?
Essentially, if I have SteamVR running, I get a significant impact to render time when the game is in focus, even when system appears to have plenty of headroom. If I am alt-tabbed from the game however, the game streams smoothly and the render times are much reduced.
I have done a fresh reinstall of OBS to ensure it wasn't some garbage in my plugins/previous config.
For the example game, I'm using Squad which isn't a VR game, but just serves as an example for when SteamVR is/isn't running. The same problem is present with other games, and basically makes it impossible to stream VR titles.
For testing, my streaming settings are using x264 with what I believe are just the default settings. I have an i9-9900k and plenty of spare CPU resource so that won't be a bottle neck. I have tried using nvenc and quicksync, and get the same results.
The numbers,
- SteamVR NOT running, - game window in focus - time to render a frame - 0.3ms
- SteamVR running - alt tabbed to desktop - time to render a frame -1.5-2.5ms
- SteamVR running - game window in focus - time to render a frame - 5-8ms
If I look at my system resources, my CPU usage never goes above 40%, and my GPU at around 65%.
OBS process priority is set to 'High' to try and ensure it's keeps things smooth.
Any ideas?