jumpyjumper___
New Member
Hi all,
I have a 165hz main monitor where I like to play my games on, but when streaming I have to cap my game's framerate to a lower value through G-SYNC. The reason for this is that the game maxes out the GPU, and OBS cannot pull enough resources from the GPU to mantain a consistent 60 fps.
Some important information:
# Ryzen 7 2700x @ 4.15 GHz
# Nvidia GeForce RTX 2080 @ Stock
# Windows 10
# OBS 22.0.2
I have been capping my game's framerate to be able to stream, but I noticed an interesting behavior that makes me hopeful for a fix that does not require this. I am looking for help in locating an alternative solution, so please do not suggest to cap my game's framerate or lower the game's graphics settings to reduce GPU load.
The following is the results from a 30 second stream at 1080p and 60 fps in the medium preset, where the game window was unfocused. (I am using Display Capture)
15:42:51.713: ==== Streaming Start ===============================================
15:43:23.933: [rtmp stream: 'adv_stream'] User stopped the stream
15:43:23.933: Output 'Replay Buffer': stopping
15:43:23.933: Output 'Replay Buffer': Total frames output: 1879
15:43:23.933: Output 'Replay Buffer': Total drawn frames: 1951
15:43:23.933: Output 'adv_stream': stopping
15:43:23.933: Output 'adv_stream': Total frames output: 1759
15:43:23.933: Output 'adv_stream': Total drawn frames: 1951
The lack of lagged frames means OBS was able to pull all GPU resources it needed even though the game's framerate was uncapped! However, when the game window is focused the following occurs.
15:45:25.074: ==== Streaming Start ===============================================
15:45:57.056: Output 'Replay Buffer': stopping
15:45:57.056: [rtmp stream: 'adv_stream'] User stopped the stream15:45:57.056: Output 'Replay Buffer': Total frames output: 1851
15:45:57.056: Output 'Replay Buffer': Total drawn frames: 1490 (1930 attempted)
15:45:57.056: Output 'Replay Buffer': Number of lagged frames due to rendering lag/stalls: 440 (22.8%)
15:45:57.056: Output 'adv_stream': stopping
15:45:57.056: Output 'adv_stream': Total frames output: 1731
15:45:57.056: Output 'adv_stream': Total drawn frames: 1491 (1931 attempted)
It is clear the action of focusing the game window makes Windows prioritize the game above the GPU and starves OBS out of the needed resources to mantain a stable framerate. In the first test, OBS' GPU usage hovered around 6.0% with few spikes. In the second test it hovered around 3.5% and 4.0%, with occassional spikes to 5.0%+.
I am looking for a solution to force Windows to prioritize OBS above the game. Things I've already tried:
# Game mode in Windows is set to disabled.
# Task Manager priority for the game is set to low, and to high for OBS.
Thank you.
I have a 165hz main monitor where I like to play my games on, but when streaming I have to cap my game's framerate to a lower value through G-SYNC. The reason for this is that the game maxes out the GPU, and OBS cannot pull enough resources from the GPU to mantain a consistent 60 fps.
Some important information:
# Ryzen 7 2700x @ 4.15 GHz
# Nvidia GeForce RTX 2080 @ Stock
# Windows 10
# OBS 22.0.2
I have been capping my game's framerate to be able to stream, but I noticed an interesting behavior that makes me hopeful for a fix that does not require this. I am looking for help in locating an alternative solution, so please do not suggest to cap my game's framerate or lower the game's graphics settings to reduce GPU load.
The following is the results from a 30 second stream at 1080p and 60 fps in the medium preset, where the game window was unfocused. (I am using Display Capture)
15:42:51.713: ==== Streaming Start ===============================================
15:43:23.933: [rtmp stream: 'adv_stream'] User stopped the stream
15:43:23.933: Output 'Replay Buffer': stopping
15:43:23.933: Output 'Replay Buffer': Total frames output: 1879
15:43:23.933: Output 'Replay Buffer': Total drawn frames: 1951
15:43:23.933: Output 'adv_stream': stopping
15:43:23.933: Output 'adv_stream': Total frames output: 1759
15:43:23.933: Output 'adv_stream': Total drawn frames: 1951
The lack of lagged frames means OBS was able to pull all GPU resources it needed even though the game's framerate was uncapped! However, when the game window is focused the following occurs.
15:45:25.074: ==== Streaming Start ===============================================
15:45:57.056: Output 'Replay Buffer': stopping
15:45:57.056: [rtmp stream: 'adv_stream'] User stopped the stream15:45:57.056: Output 'Replay Buffer': Total frames output: 1851
15:45:57.056: Output 'Replay Buffer': Total drawn frames: 1490 (1930 attempted)
15:45:57.056: Output 'Replay Buffer': Number of lagged frames due to rendering lag/stalls: 440 (22.8%)
15:45:57.056: Output 'adv_stream': stopping
15:45:57.056: Output 'adv_stream': Total frames output: 1731
15:45:57.056: Output 'adv_stream': Total drawn frames: 1491 (1931 attempted)
It is clear the action of focusing the game window makes Windows prioritize the game above the GPU and starves OBS out of the needed resources to mantain a stable framerate. In the first test, OBS' GPU usage hovered around 6.0% with few spikes. In the second test it hovered around 3.5% and 4.0%, with occassional spikes to 5.0%+.
I am looking for a solution to force Windows to prioritize OBS above the game. Things I've already tried:
# Game mode in Windows is set to disabled.
# Task Manager priority for the game is set to low, and to high for OBS.
Thank you.