Persistent Stutter/High CPU (Rendering Lag) with NVENC on Ryzen 9 3900X/RTX 3060 - Log Attached

1Cut1Kill

New Member
I am experiencing persistent stuttering and noticeable performance degradation during my multistreams to Twitch and Kick. The issue primarily manifests as Rendering Lag or high CPU usage spikes, even though I use the dedicated NVIDIA NVENC encoder.

My latest log, which I've attached below, showed a minimal dropped frame count (around 0.2%), but the actual streaming experience is significantly choppier and laggy than this suggests. I need help diagnosing why this lag is occurring intermittently, especially when running multiple outputs.


System/Setup Information:​

OBS Studio Version: 32.0.2 (64-bit)
  • Operating System: Windows 10 Build 22631 (23H2)
  • CPU: AMD Ryzen 9 3900X 12-Core Processor
  • GPU: NVIDIA GeForce RTX 3060 (12GB VRAM)
  • Encoder Used: NVENC H.264
  • Rate Control: CBR (6000 kbps)
  • Encoder Preset: P5 (Medium)
  • Base (Canvas) Resolution: 1920x1080
  • Output (Scaled) Resolution: 1920x1080
  • FPS: 60
 

rockbottom

Active Member
Rendering lag, you need to reduce load, your GPU is slightly overloaded. It isn't horrible but there's definitely room for improvement.

20:42:51.044: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 3 (0.1%)
20:42:51.047: [rtmp stream: '69184dee1cbb0cd569fb4880-kick-1'] User stopped the stream
20:42:51.047: [rtmp stream: '69184dee1cbb0cd569fb4880-kick-1'] Socket send buffer is 524288 bytes
20:42:51.047: Output '69184dee1cbb0cd569fb4880-kick-1': stopping
20:42:51.047: Output '69184dee1cbb0cd569fb4880-kick-1': Total frames output: 1833
20:42:51.047: Output '69184dee1cbb0cd569fb4880-kick-1': Total drawn frames: 1963 (1966 attempted)
20:42:51.047: Output '69184dee1cbb0cd569fb4880-kick-1': Number of lagged frames due to rendering lag/stalls: 3 (0.2%)
20:42:51.048: Video stopped, number of skipped frames due to encoding lag: 3/1965 (0.2%)
20:42:51.103: warning: 2 frames left in the queue on closing


Before I have you make other changes, fix this Scene. Move one of the captures to another Scene or just delete it. Having more than (1) capture source in the same Scene can cause interference & since things aren't too bad, there may be some improvement.

20:41:44.872: - scene 'Stream':
20:41:44.872: - source: 'Game Capture' (game_capture)
20:41:44.872: - source: 'disc' (window_capture)

20:41:44.872: - source: 'YA VENGO' (text_gdiplus_v3)
20:41:44.872: - source: 'Video Capture Device' (dshow_input)
20:41:44.872: - source: 'ChatJEmpezar' (browser_source)
20:41:44.872: - source: 'AlertasTwitch' (browser_source)
20:41:44.872: - monitoring: monitor and output
20:41:44.872: - source: 'ESTOY EN EL BAÑO' (text_gdiplus_v3)
 

rockbottom

Active Member
It wouldn't hurt to spent some time updating your encoding settings. Clean things up a bit.

20:41:52.653: Encoder ID 'jim_nvenc' is deprecated and may be removed in a future version.
20:41:52.653: Encoder ID 'obs_nvenc_h264_cuda' is deprecated and may be removed in a future version.
20:41:52.653: Encoder ID 'jim_hevc_nvenc' is deprecated and may be removed in a future version.
20:41:52.653: Encoder ID 'obs_nvenc_hevc_cuda' is deprecated and may be removed in a future version.
20:41:52.653: Encoder ID 'ffmpeg_nvenc' is deprecated and may be removed in a future version.
20:41:52.654: Encoder ID 'ffmpeg_hevc_nvenc' is deprecated and may be removed in a future version.
20:41:52.909: [obs-browser: 'ChatJEmpezar'] Error: Uncaught SecurityError: Failed to set the 'cookie' property on 'Document': The document is sandboxed and lacks the 'allow-same-origin' flag. (https://streamlabs.com/mixed/assets/widgets/js/chatbox.custom.js?id=8a1b481ff5ac254eee23:2)
20:41:53.351: Encoder ID 'jim_nvenc' is deprecated and may be removed in a future version.
20:41:53.352: Encoder ID 'obs_nvenc_h264_cuda' is deprecated and may be removed in a future version.
20:41:53.352: Encoder ID 'jim_hevc_nvenc' is deprecated and may be removed in a future version.
20:41:53.352: Encoder ID 'obs_nvenc_hevc_cuda' is deprecated and may be removed in a future version.
20:41:53.352: Encoder ID 'ffmpeg_nvenc' is deprecated and may be removed in a future version.
20:41:53.352: Encoder ID 'ffmpeg_hevc_nvenc' is deprecated and may be removed in a future version.
 

rockbottom

Active Member
I noticed the dirty start. If OBS is crashing all the time, SE is suspect. SE replaces core elements of OBS with their slop. Plugin creates a ton of issues.....
 
Top