Code:
02:31:51.424: Windows Version: 10.0 Build 18362 (revision: 778; 64-bit)
02:31:51.424: Running as administrator: false
02:31:51.424: Aero is Enabled (Aero is always on for windows 8 and above)
02:31:51.424: Windows 10 Gaming Features:
02:31:51.424: Game DVR: Off
02:31:51.426: Sec. Software Status:
02:31:51.428: Windows Defender Antivirus: enabled (AV)
02:31:51.428: Windows Firewall: enabled (FW)
02:31:51.466: Current Date/Time: 2020-05-13, 02:31:51
02:31:51.466: Browser Hardware Acceleration: true
02:31:51.466: Portable mode: false
02:31:55.491: OBS 23.2.1 (64-bit, windows)
Update OBS. 24.0.3 and later implemented a workaround to add GPU prioritization to OBS so that it receives the necessary resources for rendering and encoding.
Update OBS, run as administrator (work around only works as admin).
Code:
02:49:16.695: [jim-nvenc: 'recording_h264'] settings:
02:49:16.695: rate_control: CQP
02:49:16.695: bitrate: 0
02:49:16.695: cqp: 15
02:49:16.695: keyint: 120
02:49:16.695: preset: mq
02:49:16.695: profile: high
02:49:16.695: width: 1920
02:49:16.695: height: 1080
02:49:16.695: 2-pass: true
02:49:16.695: b-frames: 2
02:49:16.695: lookahead: true
02:49:16.695: psycho_aq: true
02:49:16.695:
02:49:16.735: [CoreAudio AAC: 'Track1']: settings:
02:49:16.735: mode: AAC
02:49:16.735: bitrate: 160
02:49:16.735: sample rate: 44100
02:49:16.735: cbr: on
02:49:16.735: output buffer: 1536
02:49:17.743: ==== Recording Start ===============================================
02:49:17.743: [ffmpeg muxer: 'adv_file_output'] Writing file 'Z:/Apex Videos/2020-05-13 02-49-16.mp4'...
02:49:59.396: Stopping recording due to hotkey
02:50:03.420: [ffmpeg muxer: 'adv_file_output'] Output of file 'Z:/Apex Videos/2020-05-13 02-49-16.mp4' stopped
02:50:03.420: Output 'adv_file_output': stopping
02:50:03.420: Output 'adv_file_output': Total frames output: 2500
02:50:03.420: Output 'adv_file_output': Total drawn frames: 2312 (2741 attempted)
02:50:03.420: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 429 (15.7%)
02:50:03.420: ==== Recording Stop ================================================
02:50:03.420: Video stopped, number of skipped frames due to encoding lag: 621/2520 (24.6%)
Your lost frames are due to both rendering lag and encoding lag. The OBS update and admin mode will help with rendering lag, but you're overloading your encoder.
Turn off Psychovisual Tuning and Lookahead, and change from "Max Quality" to "Quality". All of these functions use CUDA in addition to the normal nvenc encoder, which creates has to compete against your game's usage.
Additionally, lock your main monitor to 120hz. Playing at higher framerates will result in stuttering due to the downconversion to 60fps. Going 120->60 works because it's throwing out every other frame. Doing something like 144->60 throws out either 1 or 2 and will not be steady.
Also, the logs don't show this information since it's in the old format, but if you're running multiple monitors at different framerates, windows 10 currently has issues handling this (with a fix hopefully coming in the 2004 update). The only known workarounds right now is to run all your monitors at the same refresh rate (preferably 60hz to match recording framerate), or to run all hardware accelerated programs on the same monitor, or to disable OBS preview (which may or may not work).