Question / Help Massive Rendering Lag

connorbu

New Member
So I have been using OBS for about two weeks now and everything was working fine until today. I first got a crash so I restarted OBS and then the rendering lag started. I currently have about a 3.5% render error percentage. It started happening while I was recording Car Mechanic Simulator 2018. All my other games record just fine and it was recording CMS 2018 just fine earlier today.

Can anyone help me out with this issue?

Log file: https://obsproject.com/logs/EdeJJi9gqkHci1Jw
Crash file: https://obsproject.com/logs/aJYi010LqQrptzwj
 
14:17:24.717: - scene 'Scene':
14:17:24.717: - source: 'Display Capture 2' (monitor_capture)
14:17:24.717: - source: 'Display Capture' (monitor_capture)


Can your game not be captured by game capture? Is it on both displays at once?

You also have a new, NVENC capable card. You should be using the NVENC encoder with CQP rate control and a quality setting of about 15 or so. You're murdering your quality by selecting the x264 encoder and the ultrafast preset. Your bitrate is more than high enough to get very good quality out of NVENC.

The page on GPU overload issues in general is here, and that's what rendering lag means.

https://obsproject.com/wiki/GPU-overload-issues
 
@Narcogen I am only recording on one display while I have OBS open on my other monitor to keeps tabs on how it is doing while recording videos. I can capture video just fine on wither display.

How can I find a guide on how to set up OBS the best way for recording with NVENC?
 
Game capture is the recommended method for capturing games. Display capture is less performant and only works in certain situations, and has limitations that are specific to certain kinds of hardware.

To use NVENC choose NVENC new as your encoder, select CQP rate control and a quality setting of about 15.
 
Game capture is the recommended method for capturing games. Display capture is less performant and only works in certain situations, and has limitations that are specific to certain kinds of hardware.

To use NVENC choose NVENC new as your encoder, select CQP rate control and a quality setting of about 15.

@Narcogen Is that all I need to change? What does the "GPU" and "Max B-frames" mean? What does the CQP mean? Is higher or lower better?
 
If you don't know what a setting is, don't change it from default.

CQP is a quality setting. The lower the better. Suggested range is 15-23.

Unless you need multiple audio tracks, it's recommended to use simple output mode, indistinguishable quality, large file size and the NVENC-new encoder.

If you're not sure what settings to use, you can run the Auto Configuration Wizard from the Tools menu, and it will ask basic questions about your intended use and suggest some settings to start with.
 
16:11:48.421: Video stopped, number of skipped frames due to encoding lag: 155/6297 (2.5%)

Don't know if I'd call that massive, but it is noticeable. Increase your CQP value and see if it goes away. Otherwise you might need to alter framerate or frame size. Not sure why you would, though, on this hardware.

If you dont need multi track audio you can try simple mode, indistinguishable quality, large file size and see if you also get lag in that mode.
 
16:11:48.421: Video stopped, number of skipped frames due to encoding lag: 155/6297 (2.5%)

Don't know if I'd call that massive, but it is noticeable. Increase your CQP value and see if it goes away. Otherwise you might need to alter framerate or frame size. Not sure why you would, though, on this hardware.

If you dont need multi track audio you can try simple mode, indistinguishable quality, large file size and see if you also get lag in that mode.

I did try the simple mode with those exact settings with the NVENC encoder with no change in encoding lag. I also changed the CQ value from 15 to 20 with not any noticeable change in the encoding lag.
 
Both my monitors are the exact same. Same brand, model number, screen size, refresh rate. My refresh rate is 144 Hz. Could that play a factor in my issue?
 
Yes. OBS produces output based on its video settings, but the preview screen is run at the refresh rate of your display, so having the preview on can be a factor.

Also, 144 does not pull down cleanly to 60 so there's that issue as well.
 
Yes. OBS produces output based on its video settings, but the preview screen is run at the refresh rate of your display, so having the preview on can be a factor.

Also, 144 does not pull down cleanly to 60 so there's that issue as well.

Am I able to record at 144 FPS then or do I just need to record at 60 FPS and bring my monitor refresh rate down to 60 Hz?
 
Using a refresh rate that is an even multiple of 60 might help (OBS can just easily sample every other frame of 120hz and get a 60fps video.) Running the displays at 60 might as well. At least worth trying.
 
Using a refresh rate that is an even multiple of 60 might help (OBS can just easily sample every other frame of 120hz and get a 60fps video.) Running the displays at 60 might as well. At least worth trying.

That makes sense. I'll try doing those two options and seeing if it helps/fixes my issue.

I also did notice that without recording, my GPU utilization is at 98-99% just in the start menu of the game.

Log Before: https://obsproject.com/logs/pbbo1BopL1Mp_QNW
 
If your GPU utilization is that high you need to do something to reduce it, because when the game loads the GPU harder, OBS will also need to work harder to render those frames. You may need to reconfigure the application you're capturing to reduce GPU load. (Reduced fidelity, reduced framerate, reduced frame size, or lower fidelity-- some combination of one or more of these changes.)
 
If your GPU utilization is that high you need to do something to reduce it, because when the game loads the GPU harder, OBS will also need to work harder to render those frames. You may need to reconfigure the application you're capturing to reduce GPU load. (Reduced fidelity, reduced framerate, reduced frame size, or lower fidelity-- some combination of one or more of these changes.)

How would I go about doing that? Isn't there a way to cap the frame rate in the game? What do reduced frame size and fidelity mean?
 
Reduced frame size-- tell your game to run in a lower resolution, or tell your display to run in a lower resolution.

Fidelity-- tell your game to use lower quality graphics so it consumes less GPU resources.

If you're nearly maxing out your card in the menu, you've got to get that down or else streaming/recording will be affected, since load is only going to get higher.
 
If you're nearly maxing out your card in the menu, you've got to get that down or else streaming/recording will be affected, since load is only going to get higher.

I reduced the resolution and I couldn't see enough to be able to do anything below my monitor resolution.

I decreased my quality in the game to low and ran a benchmark with GPU utilization at 75% max and I still got encoding lag. I don't think it's the software or anything with my game. I think it is the encoder itself in my GPU that's the issue for some reason. I also thought that the NVENC encoder is completely separate from the 3D renderer on the card so it shouldn't matter what the GPU utilization is at.

My CPU is only maxing at 50% while playing any of my games so I think I might just switch to the x264 encoder and use my CPU to encode until I can figure out with the manufacturer what's wrong with it.
 
Back
Top