Low CPU and GPU usage, but getting a lot of rendering and encoding lag anyway

EBsessed

New Member
Hi, all. I feel like this started happening after the last two or three NVIDIA updates. I've been streaming for around three years and have never had rendering and encoding lag until now. Here's the log from my last stream: https://obsproject.com/logs/ApHY6eeRBo2q737K

My CPU usage during the stream was only like 16% at max, and my GPU usage was around 44%. I was only streaming a game on my SNES, so it's not even anything super taxing on my system. I used to be able to keep everything in OBS at max: preset at slowest, tuning at high quality, multipass mode at two passes, profile at high, look ahead and adaptive quantization on...everything. I never got encoding lag. Now I'm getting it in every single stream and my CPU isn't even overloaded. I keep dropping the quality of things and it doesn't stop the lag. I've lowered the preset to as low as medium, tuning to low latency, profile at main, and turned off look ahead and adaptive quantization, but the lag persists, and I refuse to keep dropping the quality of my streams lower and lower in a vain and apparently useless attempt to stop lag that shouldn't even be happening given that nothing is being overloaded from what I can tell, especially because dropping the quality isn't making any noticeable difference. I don't understand where this is coming from. I'm getting no network lag at all, so it's not my Internet connection. It's just rendering and encoding lag.

I'm a streamer who strongly believes in putting out the best quality I can, so this is really driving me crazy. Please help me. Let me know if you need any more system information from me and I'll provide whatever you require. I'm not very knowledgeable in computer systems, so I might be leaving out info that could be obviously needed to get to the root of this issue; just say the word. Thank you.
 

rockbottom

Active Member
There is some overload but check & update all of your plugins. I only checked (2) of them, both are stale, could be contributing to your pain. Newer versions for both have been released that are vetted for OBS 31.x.x. After the updates, test again see if you're back to normal.



1:40:32.927: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 4295 (0.3%)
01:40:32.927: Video stopped, number of skipped frames due to encoding lag: 7493/1313405 (0.6%)

 

EBsessed

New Member
There is some overload but check & update all of your plugins. I only checked (2) of them, both are stale, could be contributing to your pain. Newer versions for both have been released that are vetted for OBS 31.x.x. After the updates, test again see if you're back to normal.



1:40:32.927: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 4295 (0.3%)
01:40:32.927: Video stopped, number of skipped frames due to encoding lag: 7493/1313405 (0.6%)

Thank you. I have some questions.

1) How do I see what plugins I have and which ones need updating? How were you able to find that?

2) When I look at the page for the Advanced Scene Switcher update, it tells me to back up my settings before updating. However, when I click the link for how to back up my settings, the instructions it provides make no sense. It says, "If you want to back up your settings for the currently active scene collection you have the option to export (1) them to a file on the General tab in the 'Save / load settings' section. The resulting file contains all your advanced scene switcher settings of the current scene collection in JSON format." The problem is that there is no "General tab" or a "Save / load settings section" in OBS from what I can see. How do I back up my settings?

3) When I go to update the Audio Monitor, it gives me the option to download a windows installer or just a windows file. Which one do I need?

@Suslik V, unfortunately I don't know what "NVIDIA encoder performance linearly depends on frequency (clock speeds)" means, specifically "linearly" and "frequency (clock speeds)".
 

rockbottom

Active Member
Plugins load on start-up so take a look at your log right after video settings reset section. The list is longer in the log but it looks like those (2) plugins are it for 3rd party/needed updates.
19:31:47.515: video settings reset:
19:31:47.515: base resolution: 1920x1080
19:31:47.515: output resolution: 1920x1080
19:31:47.515: downscale filter: Lanczos
19:31:47.515: fps: 60/1
19:31:47.515: format: NV12
19:31:47.515: YUV mode: Rec. 709/Full
19:31:47.515: NV12 texture support enabled
19:31:47.515: P010 texture support not available
19:31:47.517: Audio monitoring device:
19:31:47.517: name: Speakers (Razer USB Sound Card)
19:31:47.517: id: {0.0.0.00000000}.{55f43397-4dcc-4543-9a12-c270da89f748}
19:31:47.524: ---------------------------------
19:31:47.524: Skipping module '../../obs-plugins/64bit/advanced-scene-switcher-lib.dll', not an OBS plugin
19:31:47.528: [adv-ss] version: 1.28.1

19:31:47.576: [Audio Monitor] loaded version 0.8.2


I've never installed either of those plugins so I can't really offer much help with them.
 

EBsessed

New Member
Plugins load on start-up so take a look at your log right after video settings reset section. The list is longer in the log but it looks like those (2) plugins are it for 3rd party/needed updates.
19:31:47.515: video settings reset:
19:31:47.515: base resolution: 1920x1080
19:31:47.515: output resolution: 1920x1080
19:31:47.515: downscale filter: Lanczos
19:31:47.515: fps: 60/1
19:31:47.515: format: NV12
19:31:47.515: YUV mode: Rec. 709/Full
19:31:47.515: NV12 texture support enabled
19:31:47.515: P010 texture support not available
19:31:47.517: Audio monitoring device:
19:31:47.517: name: Speakers (Razer USB Sound Card)
19:31:47.517: id: {0.0.0.00000000}.{55f43397-4dcc-4543-9a12-c270da89f748}
19:31:47.524: ---------------------------------
19:31:47.524: Skipping module '../../obs-plugins/64bit/advanced-scene-switcher-lib.dll', not an OBS plugin
19:31:47.528: [adv-ss] version: 1.28.1

19:31:47.576: [Audio Monitor] loaded version 0.8.2


I've never installed either of those plugins so I can't really offer much help with them.
Thank you. Would you mind please explaining how to back up my OBS settings? The instructions I tried to follow made reference to tabs I don't seem to have.

@Suslik V, what can I do about that?
 
Top