OBS Studio 24.0.3 GPU Priority Fix Testing

dodgepong

Administrator
Forum Admin
OBS Studio 24.0.3 includes a fix on Windows that may alleviate framerate issues caused by 95%+ GPU utilization. We would like some wider testing of this fix to see how it affects people with a variety of configurations and experiences.

Background: Many users have reported that they experience degraded performance in OBS Studio when they are running applications that consume their GPU resources. For example, if OBS is set to capture and record at 60 FPS but the the user runs a graphically-demanding game that utilizes nearly 100% of their GPU, OBS may render at a reduced framerate. You can see your GPU utilization on Windows 10 in the Task Manager, and you can see if OBS is running at a degraded framerate by checking the "Frames missed due to rendering lag" stat in the Stats window under View > Stats or View > Docks > Stats.

Here are the steps to test this fix:
  1. Ensure you have the latest version of OBS Studio (24.0.3 as of this writing)
  2. Run a graphical application with high GPU demands (examples: Apex Legends, Rainbow 6 Siege, PlayerUnknown's Battlegrounds)
  3. Run OBS Studio as Administrator. The fix will only work if you are running OBS as administrator. To disable the fix, run OBS as a normal user.
  4. Open the Stats window under View > Stats, or View > Docks > Stats.
  5. Begin streaming or recording as normal
  6. In the Stats window, verify that your FPS count matches what is set under your Settings > Video settings, and that you are getting minimal frames missed due to rendering lag.
Please report back your "Before" and "After" with OBS both running not as administrator, and with OBS running as Administrator. Log files would be appreciated as well (Help > Log Files). NOTE: This may result in a small reduction in performance of any games or other graphics applications running at the same time.

You must run OBS as administrator to enable this fix. We're investigating ways to make this fix available without the need to run as admin. There are some functions that do not work properly if you are running OBS as administrator, such as drag+drop files and some hotkey behavior.

Thanks for your feedback!
 

Rodney

Forum Moderator
Note: If you see little or no improvement and you are using window capture sources to capture secondary windows like a music player or speedrun timer (i.e. not the game), please check to see if the frame rate stabilizes if you disable the window capture sources.
 
This works incredibly well. Haven't logged anything but the recording and the FPS from a game of PUBG, but the GPU was constantly above 95% during a long game and i recorded it at the same time with pretty good settings. Not a single frame gone, no rendering lag at all.

I am 100% sure these setting would have created rendering lag without the admin flag.
 
I am curious. Does this bug affect using x264 since that is software encoding? I understand that if the GPU is maxed out it cannot do the whole NVENC thing, but what if it maxes out and the user is using x264?
 

dodgepong

Administrator
Forum Admin
This has nothing to do with encoding. This has to do with rendering, which is the process that comes before encoding.
 

Fam3mon5ster

New Member
Do we just post the before and after logs here? I've been testing this GPU fix for about a week and honestly its amazing to be able to run maxed out settings and get literally no skipped or lagged frames. Recently with COD MW update though I have noticed very frequent crashes in obs - I have 9 logs alone from 11/17/2019 - "
22:23:08.529: [jim-nvenc: 'streaming_h264'] get_encoded_packet: nv.nvEncLockBitstream(s, &lock) failed: 8 (NV_ENC_ERR_INVALID_PARAM)
22:23:08.530: Error encoding with encoder 'streaming_h264'
22:23:08.530: Video stopped, number of skipped frames due to encoding lag: 3/270770 (0.0%)
22:23:08.530: [rtmp stream: 'adv_stream'] Encoder error, disconnecting"

I figured it was because raytracing was enabled because I recall when the game launched the obs error would occur when raytracing was enabled and after couples of matches but when disabled I have no issue. With this recent update MW experienced, I can no longer stream MW without it erroring out and with raytracing disabled. I may try other nvidia drivers and see if thats the issue. ( I attached some logs one with this weird errors which will usually end up with obs saying an error had occurred.)

I wouldn't mind by the way if you want me to do some tests to maybe help this build? ( added non administrator log as well )
 

Attachments

Last edited:

Fleurrose

New Member
Do we just post the before and after logs here? I've been testing this GPU fix for about a week and honestly its amazing to be able to run maxed out settings and get literally no skipped or lagged frames. Recently with COD MW update though I have noticed very frequent crashes in obs - I have 9 logs alone from 11/17/2019 - "
22:23:08.529: [jim-nvenc: 'streaming_h264'] get_encoded_packet: nv.nvEncLockBitstream(s, &lock) failed: 8 (NV_ENC_ERR_INVALID_PARAM)
22:23:08.530: Error encoding with encoder 'streaming_h264'
22:23:08.530: Video stopped, number of skipped frames due to encoding lag: 3/270770 (0.0%)
22:23:08.530: [rtmp stream: 'adv_stream'] Encoder error, disconnecting"

I figured it was because raytracing was enabled because I recall when the game launched the obs error would occur when raytracing was enabled and after couples of matches but when disabled I have no issue. With this recent update MW experienced, I can no longer stream MW without it erroring out and with raytracing disabled. I may try other nvidia drivers and see if thats the issue. ( I attached some logs one with this weird errors which will usually end up with obs saying an error had occurred.)

I wouldn't mind by the way if you want me to do some tests to maybe help this build? ( added non administrator log as well )
usa today protonmail
Thank you for the information
 
Last edited:

Astillius

New Member
Literally made an account just so i could give you guys feedback that it has made a massive difference for me.
Game: Final Fantasy XIV
Before, frame render time was 20-40 ms whenever the game was in focus.
after, frame render time is always 2ms or less, even when the game is in focus.

difference is night and day. awesome job guys.
 

CuoReNeRo

New Member
Btw this fix works for GPU issues, but it causes CPU issues: if you have a really good video card and an "old" CPU, do NOT run OBS Studio as administrator, or you'll see your CPU at 100%, with frames dropped and lag.

Just for info, I have an Asus Strix RTX2070 and an i7 4790k, so if you have something similar you know what to do.
 
Top