Your GPU is getting overloaded, which is causing rendering and encoding lag.
First off, turn off game mode (follow these directions). After that, ensure you have a cap on your game's framerate (either by using vsync or by setting a maximum framerate limit), and lower your graphics settings so that you're able to maintain that framerate.
Also, you can try turning off psycho visual tuning, as that uses extra GPU power.
Your GPU is getting overloaded, which is causing rendering and encoding lag.
First off, turn off game mode (follow these directions). After that, ensure you have a cap on your game's framerate (either by using vsync or by setting a maximum framerate limit), and lower your graphics settings so that you're able to maintain that framerate.
Also, you can try turning off psycho visual tuning, as that uses extra GPU power.
Since past saturday; https://obsproject.com/forum/threads/one-day-to-another-youtube-streaming-is-lagging-choppy.102669/Your GPU is getting overloaded
There is one inside that thread I post it.Same thing, need to see a log file.
https://obsproject.com/logs/Jhp7iPDE1IQnFb-_That log is incomplete. Please use the methods described here to get the full log posted.
Well that was from the last stream test. Is it gets worst on next streams I'll give you the new log.Make sure you grab the correct log file for an actual recording/streaming session.
I found these lines on another log, what do you think about this:That's what I'm trying to tell you -- there's not a stream attempt in those logs. It's the wrong log file.
01:44:10.747: ==== Startup complete ===============================================
01:44:10.753: All scene data cleared
01:44:10.753: ------------------------------------------------
01:44:10.768: WASAPI: Device 'Altavoces (Realtek High Definition Audio)' initialized
01:44:10.904: adding 85 milliseconds of audio buffering, total audio buffering is now 85 milliseconds (source: Mic/Aux)
01:44:10.904:
01:44:10.946: adding 21 milliseconds of audio buffering, total audio buffering is now 106 milliseconds (source: Mic/Aux)
01:44:10.946:
01:44:10.953: WASAPI: Device 'Micrófono (Realtek High Definition Audio)' initialized
01:44:11.133: warning: deprecated pixel format used, make sure you did set range correctly
01:44:11.133: warning: Warning: data is not aligned! This can lead to a speed loss
01:44:11.173: Switched to scene 'Escena'
01:44:11.174: [game-capture: 'Capturar Juego'] attempting to hook process: sekiro.exe
01:44:11.175: ------------------------------------------------
01:44:11.175: Loaded scenes:
01:44:11.175: - scene 'Escena':
01:44:11.175: - source: 'Imagen' (image_source)
01:44:11.175: - source: 'Capturar Juego' (game_capture)
01:44:11.175: - source: 'Imagen 2' (image_source)
01:44:11.175: - filter: 'Corrección de color' (color_filter)
01:44:11.176: - source: 'Dispositivo de captura de video' (dshow_input)
01:44:11.176: - filter: 'Fondro croma' (chroma_key_filter)
01:44:11.176: - filter: 'Filtro de enfoque' (sharpness_filter)
01:44:11.176: - filter: 'Desplazamiento' (scroll_filter)
01:44:11.176: - filter: 'Recortar/Acolchar' (crop_filter)
01:44:11.176: - source: 'Imagen 4' (image_source)
01:44:11.176: ------------------------------------------------
01:44:11.176: [game-capture: 'Capturar Juego'] shared texture capture successful
01:44:11.196: ---------------------------------
01:44:11.196: [DShow Device: 'Dispositivo de captura de video'] settings updated:
01:44:11.196: video device: c922 Pro Stream Webcam
01:44:11.196: video path: \\?\usb#vid_046d&pid_085c&mi_00#6&1fd2bc46&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
01:44:11.196: resolution: 960x720
01:44:11.196: fps: 30.00 (interval: 333333)
01:44:11.196: format: MJPEG
01:44:11.218: using video device audio: no
01:44:11.218: audio device: Micrófono (Realtek High Definition Audio)
01:44:11.218: sample rate: 44100
01:44:11.218: channels: 2
01:44:11.218: audio type: Capture
01:44:11.218: DShow: HDevice::ConnectPins: failed to connect pins (0x80040207):
01:46:55.009: [jim-nvenc] settings:
01:46:55.009: rate_control: CBR
01:46:55.009: bitrate: 18000
01:46:55.009: cqp: 20
01:46:55.009: keyint: 120
01:46:55.009: preset: mq
01:46:55.009: profile: high
01:46:55.009: width: 2560
01:46:55.009: height: 1440
01:46:55.009: 2-pass: true
01:46:55.009: b-frames: 2
01:46:55.009: lookahead: false
01:46:55.009: psycho_aq: true
01:46:55.009:
01:46:55.020: [CoreAudio AAC: 'Track1']: settings:
01:46:55.020: mode: AAC
01:46:55.020: bitrate: 160
01:46:55.020: sample rate: 48000
01:46:55.020: cbr: on
01:46:55.020: output buffer: 1536
01:46:55.020: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
01:46:55.068: [rtmp stream: 'adv_stream'] Interface: Intel(R) Ethernet Connection (2) I219-V (ethernet, 1000 mbps)
01:46:55.488: [rtmp stream: 'adv_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
01:46:55.491: ==== Streaming Start ===============================================
01:46:56.494: adding 85 milliseconds of audio buffering, total audio buffering is now 192 milliseconds (source: Dispositivo de captura de video)
01:46:56.494:
01:46:56.556: [game-capture: 'Capturar Juego'] d3d11 shared texture capture successful
01:46:56.559: [game-capture: 'Capturar Juego'] shared texture capture successful
01:52:11.316: [game-capture: 'Capturar Juego'] capture window no longer exists, terminating capture
01:52:11.316: [game-capture: 'Capturar Juego'] capture stopped
01:52:11.326: [game-capture: 'Capturar Juego'] attempting to hook process: sekiro.exe
01:52:11.330: [game-capture: 'Capturar Juego'] d3d11 shared texture capture successful
01:52:11.342: [game-capture: 'Capturar Juego'] shared texture capture successful
01:52:11.708: [game-capture: 'Capturar Juego'] capture window no longer exists, terminating capture
01:52:11.709: [game-capture: 'Capturar Juego'] capture stopped
01:52:22.242: [rtmp stream: 'adv_stream'] User stopped the stream
01:52:22.242: Output 'adv_stream': stopping
01:52:22.242: Output 'adv_stream': Total frames output: 19586
01:52:22.242: Output 'adv_stream': Total drawn frames: 16465 (19634 attempted)
01:52:22.242: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 3169 (16.1%)
01:52:22.242: Video stopped, number of skipped frames due to encoding lag: 3559/19602 (18.2%)
01:52:22.244: ==== Streaming Stop ================================================
01:52:22.242: Output 'adv_stream': stopping
01:52:22.242: Output 'adv_stream': Total frames output: 19586
01:52:22.242: Output 'adv_stream': Total drawn frames: 16465 (19634 attempted)
01:52:22.242: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 3169 (16.1%)
01:52:22.242: Video stopped, number of skipped frames due to encoding lag: 3559/19602 (18.2%)
01:46:55.009: [jim-nvenc] settings:
01:46:55.009: rate_control: CBR
01:46:55.009: bitrate: 18000
01:46:55.009: cqp: 20
01:46:55.009: keyint: 120
01:46:55.009: preset: mq
01:46:55.009: profile: high
01:46:55.009: width: 2560
01:46:55.009: height: 1440
01:46:55.009: 2-pass: true
01:46:55.009: b-frames: 2
01:46:55.009: lookahead: false
01:46:55.009: psycho_aq: true
But is weird because I'm using those settings in the last tests that were nicely with good quality. And the game is using 45 to 50% GPU usage and even less cpu (is Sekiro), in a 1080ti... In fact My 3 first streams were with those settings cause was the fist config I use following the "official" guide for new nvenc so I'm still confuse about why first three days ok and the next one bad.Change your preset from "Max Quality" to "Quality", and turn off Psycho Visual Tuning. Both of these options leverage CUDA, which requires more GPU usage for encoding... which is more than likely causing both the rendering and encoding lag.
I'm testing right now; one with Max Quality and Psycho off and another one with Quality and Psycho on.. and I would say that the last one with pyscho on and quality preset looks and runs better. Pretty much like ingame.