Question / Help When I recording Ray Traced games, only Ray Traced games (Control, Minecraft RTX Beta), the video is very laggy, not watchable and nothing helps.

PeterPaul

New Member
In my log files even if I use my Ryzen 9 3900x's power or using the NVENC new encoder on my RTX 2060 Super, I have different amount of number of lagged frames due to rendering lag/stalls and skipped frames due to encoding lag. Control is acceptable, but the new Minecraft RTX Beta is sad how laggy is. The gameplay is fluid, I don't realize anything, only when I watch what I recorded and saw how laggy the recording is. I go to the log files and as I said skipped frames etc. If I play and record a non ray traced, but very demanding game, the recording fine and fluid. What could be the problem? OBS has problems with Ray Tracing, I mean the DXR API?
PS: I've never have any problem with OBS until now.
 

PeterPaul

New Member
Here is what is in my log file!


23:30:58.172: CoInitializeEx succeeded: 0x00000001
23:30:58.172: CPU Name: AMD Ryzen 9 3900X 12-Core Processor
23:30:58.172: CPU Speed: 3800MHz
23:30:58.172: Physical Cores: 12, Logical Cores: 24
23:30:58.172: Physical Memory: 16332MB Total, 13034MB Free
23:30:58.172: Windows Version: 10.0 Build 18363 (release: 1909; revision: 778; 64-bit)
23:30:58.172: Running as administrator: false
23:30:58.172: Aero is Enabled (Aero is always on for windows 8 and above)
23:30:58.172: Windows 10 Gaming Features:
23:30:58.172: Game DVR: On
23:30:58.173: Sec. Software Status:
23:30:58.174:
23:30:58.174:
23:30:58.175: Current Date/Time: 2020-04-28, 23:30:58
23:30:58.175: Browser Hardware Acceleration: true
23:30:58.175: Portable mode: false
23:30:58.326: OBS 25.0.8 (64-bit, windows)
23:30:58.326: ---------------------------------
23:30:58.326: ---------------------------------
23:30:58.326: audio settings reset:
23:30:58.326: samples per sec: 44100
23:30:58.326: speakers: 2
23:30:58.327: ---------------------------------
23:30:58.327: Initializing D3D11...
23:30:58.327: Available Video Adapters:
23:30:58.329: Adapter 0: NVIDIA GeForce RTX 2060 SUPER
23:30:58.329: Dedicated VRAM: 4126146560
23:30:58.329: Shared VRAM: 4267864064
23:30:58.329: PCI ID: 10de:1f06
23:30:58.329: Driver Version: 26.21.14.4587
23:30:58.329: output 0: pos={0, 0}, size={1920, 1080}, attached=true, refresh=60, name=LG HDR WFHD
23:30:58.330: Loading up D3D11 on adapter NVIDIA GeForce RTX 2060 SUPER (0)
23:30:58.368: D3D11 loaded successfully, feature level used: b000
23:30:58.368: DXGI increase maximum frame latency success
23:30:58.368: D3D11 GPU priority setup failed (not admin?)
23:30:58.692: ---------------------------------
23:30:58.692: video settings reset:
23:30:58.692: base resolution: 1920x1080
23:30:58.692: output resolution: 1920x1080
23:30:58.692: downscale filter: Bicubic
23:30:58.692: fps: 60/1
23:30:58.692: format: NV12
23:30:58.692: YUV mode: 601/Partial
23:30:58.692: NV12 texture support enabled
23:30:58.692: Audio monitoring device:
23:30:58.692: name: Alapértelmezett
23:30:58.692: id: default
23:30:58.693: ---------------------------------
23:30:58.694: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
23:30:58.694: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
23:30:58.715: [AMF] Unable to load 'amfrt64.dll', error code 126.
23:30:58.716: [AMF] AMF Test failed due to one or more errors.
23:30:58.716: Failed to initialize module 'enc-amf.dll'
23:30:58.727: [obs-browser]: Version 2.8.6
23:30:58.730: NVENC supported
23:30:58.769: Couldn't find VLC installation, VLC video source disabled
23:30:58.773: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
23:30:58.774: No blackmagic support
23:30:58.776: ---------------------------------
23:30:58.776: Loaded Modules:
23:30:58.776: win-wasapi.dll
23:30:58.776: win-mf.dll
23:30:58.776: win-dshow.dll
23:30:58.776: win-decklink.dll
23:30:58.776: win-capture.dll
23:30:58.776: vlc-video.dll
23:30:58.776: text-freetype2.dll
23:30:58.776: rtmp-services.dll
23:30:58.776: obs-x264.dll
23:30:58.776: obs-vst.dll
23:30:58.776: obs-transitions.dll
23:30:58.776: obs-text.dll
23:30:58.776: obs-qsv11.dll
23:30:58.776: obs-outputs.dll
23:30:58.776: obs-filters.dll
23:30:58.776: obs-ffmpeg.dll
23:30:58.776: obs-browser.dll
23:30:58.776: image-source.dll
23:30:58.776: frontend-tools.dll
23:30:58.776: enc-amf.dll
23:30:58.776: decklink-ouput-ui.dll
23:30:58.776: coreaudio-encoder.dll
23:30:58.776: ---------------------------------
23:30:58.776: ==== Startup complete ===============================================
23:30:58.777: Service '' not found
23:30:58.778: All scene data cleared
23:30:58.778: ------------------------------------------------
23:30:58.817: WASAPI: Device 'Hangszórók (Realtek(R) Audio)' [48000 Hz] initialized
23:30:58.817: [Loaded global audio device]: 'Asztal audio'
23:30:58.841: WASAPI: Device 'Mikrofon (2 - USB PnP Sound Device)' [44100 Hz] initialized
23:30:58.841: [Loaded global audio device]: 'Mikrofon/Aux'
23:30:58.853: Switched to scene 'Jelenet'
23:30:58.853: ------------------------------------------------
23:30:58.853: Loaded scenes:
23:30:58.853: - scene 'Jelenet':
23:30:58.853: - source: 'Kijelző felvétel' (monitor_capture)
23:30:58.853: - source: 'Videorögzítő eszköz' (dshow_input)
23:30:58.853: - filter: 'Chroma kulcs' (chroma_key_filter)
23:30:58.853: ------------------------------------------------
23:30:58.870: ---------------------------------
23:30:58.870: [DShow Device: 'Videorögzítő eszköz'] settings updated:
23:30:58.870: video device: Logitech HD Pro Webcam C920
23:30:58.870: video path: \\?\usb#vid_046d&pid_082d&mi_00#7&39d370d2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
23:30:58.870: resolution: 640x480
23:30:58.870: flip: 0
23:30:58.870: fps: 30.00 (interval: 333333)
23:30:58.870: format: I420
23:30:58.898: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds (source: Mikrofon/Aux)
23:30:58.898:
23:31:14.506: DShow: Failed to find crossbar (0x80004005):
23:31:16.618: DShow: Failed to find crossbar (0x80004005):
23:31:19.920: Videorögzítő eszköz: ResolutionValid failed
23:31:19.920: Videorögzítő eszköz: Video configuration failed
23:31:26.212: ---------------------------------
23:31:26.212: [DShow Device: 'Videorögzítő eszköz'] settings updated:
23:31:26.212: video device: Logitech HD Pro Webcam C920
23:31:26.212: video path: \\?\usb#vid_046d&pid_082d&mi_00#7&39d370d2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
23:31:26.212: resolution: 1920x1080
23:31:26.212: flip: 0
23:31:26.212: fps: 30.00 (interval: 333333)
23:31:26.212: format: I420
23:31:35.582: ---------------------------------
23:31:35.582: [DShow Device: 'Videorögzítő eszköz'] settings updated:
23:31:35.582: video device: Logitech HD Pro Webcam C920
23:31:35.582: video path: \\?\usb#vid_046d&pid_082d&mi_00#7&39d370d2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
23:31:35.582: resolution: 640x480
23:31:35.582: flip: 0
23:31:35.582: fps: 30.00 (interval: 333333)
23:31:35.582: format: I420
23:31:47.803: ---------------------------------
23:31:47.803: [DShow Device: 'Videorögzítő eszköz'] settings updated:
23:31:47.803: video device: Logitech HD Pro Webcam C920
23:31:47.803: video path: \\?\usb#vid_046d&pid_082d&mi_00#7&39d370d2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
23:31:47.803: resolution: 640x480
23:31:47.803: flip: 0
23:31:47.803: fps: 30.00 (interval: 333333)
23:31:47.803: format: I420
23:32:03.992: ---------------------------------
23:32:03.992: [DShow Device: 'Videorögzítő eszköz'] settings updated:
23:32:03.992: video device: Logitech HD Pro Webcam C920
23:32:03.992: video path: \\?\usb#vid_046d&pid_082d&mi_00#7&39d370d2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
23:32:03.992: resolution: 640x480
23:32:03.992: flip: 0
23:32:03.992: fps: 30.00 (interval: 333333)
23:32:03.992: format: I420
23:32:05.410: ---------------------------------
23:32:05.410: [DShow Device: 'Videorögzítő eszköz'] settings updated:
23:32:05.410: video device: Logitech HD Pro Webcam C920
23:32:05.410: video path: \\?\usb#vid_046d&pid_082d&mi_00#7&39d370d2&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\{bbefb6c7-2fc4-4139-bb8b-a58bba724083}
23:32:05.410: resolution: 640x480
23:32:05.410: flip: 0
23:32:05.410: fps: 30.00 (interval: 333333)
23:32:05.410: format: I420
23:32:15.517: [jim-nvenc: 'recording_h264'] settings:
23:32:15.517: rate_control: CBR
23:32:15.517: bitrate: 12000
23:32:15.517: cqp: 20
23:32:15.517: keyint: 250
23:32:15.517: preset: hq
23:32:15.517: profile: high
23:32:15.517: width: 1920
23:32:15.517: height: 1080
23:32:15.517: 2-pass: false
23:32:15.517: b-frames: 2
23:32:15.517: lookahead: false
23:32:15.517: psycho_aq: true
23:32:15.517:
23:32:15.526: ---------------------------------
23:32:15.526: [FFmpeg aac encoder: 'Track1'] bitrate: 160, channels: 2, channel_layout: 3
23:32:15.526:
23:32:15.531: ==== Recording Start ===============================================
23:32:15.531: [ffmpeg muxer: 'adv_file_output'] Writing file 'E:/Videóim/2020-04-28 23-32-15.mp4'...
23:33:32.865: [ffmpeg muxer: 'adv_file_output'] Output of file 'E:/Videóim/2020-04-28 23-32-15.mp4' stopped
23:33:32.865: Output 'adv_file_output': stopping
23:33:32.865: Output 'adv_file_output': Total frames output: 4625
23:33:32.865: Output 'adv_file_output': Total drawn frames: 4613 (4640 attempted)
23:33:32.865: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 27 (0.6%)
23:33:32.866: ==== Recording Stop ================================================
23:33:32.866: Video stopped, number of skipped frames due to encoding lag: 204/4638 (4.4%)
23:33:32.915: warning: 2 frames left in the queue on closing
23:34:17.874: ==== Shutting down ==================================================
23:34:17.880: Switched to scene '(null)'
23:34:18.049: WASAPI: Device 'Hangszórók (Realtek(R) Audio)' Terminated
23:34:18.051: WASAPI: Device 'Mikrofon (2 - USB PnP Sound Device)' Terminated
23:34:18.057: All scene data cleared
23:34:18.057: ------------------------------------------------
23:34:18.124: Freeing OBS context data
23:34:18.152: [Scripting] Total detached callbacks: 0
23:34:18.158: == Profiler Results =============================
23:34:18.158: run_program_init: 831.33 ms
23:34:18.158: ┣OBSApp::AppInit: 11.443 ms
23:34:18.158: ┃ ┗OBSApp::InitLocale: 1.416 ms
23:34:18.158: ┗OBSApp::OBSInit: 751.841 ms
23:34:18.158: ┣obs_startup: 2.526 ms
23:34:18.158: ┗OBSBasic::OBSInit: 597.665 ms
23:34:18.158: ┣OBSBasic::InitBasicConfig: 0.273 ms
23:34:18.158: ┣OBSBasic::ResetAudio: 0.112 ms
23:34:18.158: ┣OBSBasic::ResetVideo: 365.875 ms
23:34:18.158: ┣OBSBasic::InitOBSCallbacks: 0.004 ms
23:34:18.158: ┣OBSBasic::InitHotkeys: 0.034 ms
23:34:18.158: ┣obs_load_all_modules: 83.567 ms
23:34:18.158: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.313 ms
23:34:18.158: ┃ ┣obs_init_module(decklink-ouput-ui.dll): 0.4 ms
23:34:18.158: ┃ ┣obs_init_module(enc-amf.dll): 20.555 ms
23:34:18.158: ┃ ┣obs_init_module(frontend-tools.dll): 2.922 ms
23:34:18.158: ┃ ┣obs_init_module(image-source.dll): 0.004 ms
23:34:18.158: ┃ ┣obs_init_module(obs-browser.dll): 0.247 ms
23:34:18.158: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.635 ms
23:34:18.158: ┃ ┃ ┗nvenc_check: 0.608 ms
23:34:18.158: ┃ ┣obs_init_module(obs-filters.dll): 0.017 ms
23:34:18.158: ┃ ┣obs_init_module(obs-outputs.dll): 0.005 ms
23:34:18.158: ┃ ┣obs_init_module(obs-qsv11.dll): 33.104 ms
23:34:18.158: ┃ ┣obs_init_module(obs-text.dll): 0.19 ms
23:34:18.158: ┃ ┣obs_init_module(obs-transitions.dll): 0.006 ms
23:34:18.158: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
23:34:18.158: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
23:34:18.158: ┃ ┣obs_init_module(rtmp-services.dll): 0.251 ms
23:34:18.158: ┃ ┣obs_init_module(text-freetype2.dll): 0.02 ms
23:34:18.158: ┃ ┣obs_init_module(vlc-video.dll): 0.026 ms
23:34:18.158: ┃ ┣obs_init_module(win-capture.dll): 1.115 ms
23:34:18.158: ┃ ┣obs_init_module(win-decklink.dll): 2.614 ms
23:34:18.158: ┃ ┣obs_init_module(win-dshow.dll): 0.909 ms
23:34:18.158: ┃ ┣obs_init_module(win-mf.dll): 0 ms
23:34:18.158: ┃ ┣obs_init_module(win-wasapi.dll): 0.007 ms
23:34:18.158: ┃ ┗reset_win32_symbol_paths: 0.05 ms
23:34:18.158: ┣OBSBasic::ResetOutputs: 0.339 ms
23:34:18.158: ┣OBSBasic::CreateHotkeys: 0.029 ms
23:34:18.158: ┣OBSBasic::InitService: 1.184 ms
23:34:18.158: ┣OBSBasic::InitPrimitives: 0.066 ms
23:34:18.158: ┗OBSBasic::Load: 77.95 ms
23:34:18.158: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.004 ms, max=45.642 ms, 99th percentile=0.045 ms, 99.8987% below 25 ms
23:34:18.158: audio_thread(Audio): min=0 ms, median=0.028 ms, max=25.329 ms, 99th percentile=0.397 ms
23:34:18.158: ┗receive_audio: min=0.003 ms, median=0.241 ms, max=25.309 ms, 99th percentile=0.41 ms, 0.379354 calls per parent call
23:34:18.158: ┣buffer_audio: min=0 ms, median=0.001 ms, max=0.006 ms, 99th percentile=0.002 ms
23:34:18.158: ┗do_encode: min=0.016 ms, median=0.238 ms, max=25.307 ms, 99th percentile=0.407 ms
23:34:18.158: ┗encode(Track1): min=0.013 ms, median=0.22 ms, max=0.77 ms, 99th percentile=0.381 ms
23:34:18.158: obs_graphics_thread(16.6667 ms): min=0.063 ms, median=0.352 ms, max=56.309 ms, 99th percentile=0.836 ms, 99.6649% below 16.667 ms
23:34:18.158: ┣tick_sources: min=0.001 ms, median=0.094 ms, max=55.707 ms, 99th percentile=0.291 ms
23:34:18.158: ┣output_frame: min=0.034 ms, median=0.097 ms, max=36.549 ms, 99th percentile=0.403 ms
23:34:18.158: ┃ ┗gs_context(video->graphics): min=0.034 ms, median=0.097 ms, max=36.549 ms, 99th percentile=0.403 ms
23:34:18.158: ┃ ┣render_video: min=0.002 ms, median=0.064 ms, max=28.948 ms, 99th percentile=0.348 ms
23:34:18.158: ┃ ┃ ┣render_main_texture: min=0.001 ms, median=0.042 ms, max=5.876 ms, 99th percentile=0.216 ms
23:34:18.158: ┃ ┃ ┣render_convert_texture: min=0.005 ms, median=0.01 ms, max=0.092 ms, 99th percentile=0.026 ms, 0.386413 calls per parent call
23:34:18.158: ┃ ┃ ┗output_gpu_encoders: min=0 ms, median=0.019 ms, max=0.449 ms, 99th percentile=0.049 ms, 0.386413 calls per parent call
23:34:18.158: ┃ ┗gs_flush: min=0.008 ms, median=0.029 ms, max=26.237 ms, 99th percentile=0.078 ms
23:34:18.158: ┗render_displays: min=0 ms, median=0.114 ms, max=2.328 ms, 99th percentile=0.242 ms
23:34:18.158: =================================================
23:34:18.158: == Profiler Time Between Calls ==================
23:34:18.158: obs_hotkey_thread(25 ms): min=24.679 ms, median=25.031 ms, max=70.875 ms, 75.3988% within ±2% of 25 ms (0% lower, 24.6012% higher)
23:34:18.158: obs_graphics_thread(16.6667 ms): min=0.61 ms, median=16.667 ms, max=56.314 ms, 99.5225% within ±2% of 16.667 ms (0.142414% lower, 0.335093% higher)
23:34:18.158: =================================================
23:34:18.178: Number of memory leaks: 0
 

carlmmii

Active Member
Run OBS as administrator, and turn off psychovisual tuning.

Running as administrator will put OBS on the priority list for GPU usage, which should allow it to grab what it needs before your game takes the rest of the resources.

Psychovisual tuning is a CUDA-accelerated encoding feature (along with Look Ahead and 2-pass encoding from Max Quality). Sometimes this can be used with little to no impact. Other cases it can have a huge impact (which is very likely in your case, running an RTX-enabled game).


As a side note, do not record directly to .mp4. This container format requires closing metadata written at the end of recording, so if anything happens to interrupt the recording abruptly (such as a crash), then the entire recording will be corrupted. Record directly to .mkv or .flv instead. If you need .mp4 for editing purposes, then you can remux the recording afterward (either automatically via the advanced settings, or manually through the file menu).
 

carlmmii

Active Member
That is definitely not expected... something else is going on.

Your rendering lag of ~4% is unexpected. Running windows 1909, and OBS in administrator mode... this is supposed to add OBS to your GPU priority list so that t can get the proper GPU resources before your game uses the rest of it. This apparently is not happening properly, and may be a weird side effect of major RTX usage.

Something to at least try is to change from display capture to game capture or window capture. Display capture is the least performant method of capture, so there may be some tangible benefit with changing... honestly though, I doubt this will make much of a difference.

The major issue you're running into right now though is your encoding lag. With the settings you have, your nvenc encoder should not be running into any bottlenecks itself. However, any issue with actually writing data to disk will show up as encoder lag.

Just for troubleshooting purposes, switch your encoder to x264 and use the veryfast preset, and do another recording test.

After that, try recording directly to your C: drive.
 

PeterPaul

New Member
I have to use Display Capture, because the Windows handles the Minecraft Windows 10 version as an "app". I usually use Game Capture. Anyway I had luck, as soon as possible I read your comment, I tried with Game Capture and added to the Game Capture as a specific window the Minecraft app. So because the lag immediatly happened quickly did a test and I think now I am okay. What do you think? Because I'm far far thanful, because you helped me a lot, I appriciate very much.

 

PeterPaul

New Member
Thank you and thank you 1000 times again. Finally I can continue the work on my youtube channel. Have nice day/evening/night wherever you are Master!
 

rockyrose

New Member
I have to use Display Capture, because the Windows handles the Minecraft Windows 10 version as an "app". I usually use Game Capture. Anyway I had luck, as soon as possible I read your comment, I tried with Game Capture and added to the Game Capture as a specific window the Minecraft app. So because the lag immediatly happened quickly did a test and I think now I am okay. What do you think? Because I'm far far thanful, because you helped me a lot, I appriciate very much.

https://obsproject.com/logs/vray-crackeado/Ugdzia8Lv9HjYKaV
You cannot describe your experience using Display Capture versus Game Capture for recording Minecraft Windows 10 version, and what differences did you notice in terms of performance and functionality?
 
Top