Question / Help What can be causing my encoding lags?

Ernst_Blofield

New Member
I've attached my log file here. One comment is I know of the 317 frames I dropped they're ISP related. What I am curious is why I am getting encoding lag. I can tell you when it happens and my subsequent resources.

It happens in Apex legends, when I'm dropping mostly.

My TOTAL CPU is approximately 55%
My OBS CPU usage is 45-50%
GPU usage is <25%
Memory is <25%

I've attached my log file here. Any help here would be great. I see there is some encoding lag in the file but I can't for the life of me figure out why, I just know when it happens in game and I can see it give me an encoding warning and of course the encoding lag log ticks upward. Its not more than 0.6% of the stream but as a stream quality stickler I'm desperately trying to figure out why this is happening and what I can do to prevent it.

This is on a dedicated stream PC:

Ryzen 1800X standard 3.7ghz clock
GTX 950
32GB ram
Avermedia 4k cap card for game play (set to 1440p144hz)
El Gato hd60pro for camera
 

Attachments

  • 2019-02-23 11-20-53.txt
    20 KB · Views: 61

Narcogen

Active Member
11:24:58.472: [x264 encoder: 'streaming_h264'] preset: faster

18:36:22.409: Video stopped, number of skipped frames due to encoding lag: 9717/1552986 (0.6%)


Total CPU usage is not a useful metric here as not every operation that a game or that OBS needs to perform can be scaled to an arbitrary number of threads. The skipped frame warning means that .6% of the time, OBS tried to encode a frame and could not because it did not have enough CPU resources.

If you absolutely cannot stand that .6% of encoding lag, you can try setting OBS to a higher CPU priority and see if that helps, or drop from faster to fast, or use NVENC instead.
 
It seems odd to me that you are getting that encoding lag with Faster on that 8 cores 16 threads Ryzen CPU

Not sure if this would help but I do suggest to disable Game Mode
Looking at Log it says:
11:20:53.038: Windows 10 Gaming Features:
11:20:53.038: Game DVR: On
 

Narcogen

Active Member
Game Mode is not Game DVR, those are separate features.

Game Mode, generally speaking, causes rendering lag, not encoding lag.
 
Top