Question / Help Unstable FPS in OBS with AMD Ryzen

Zubre

New Member
Hi

Like the title says, i'm having some issues in OBS that i have not encountered before while using the Intel platform, the problem being that when i'm trying to record any type of game i will get FPS dips in OBS, the game however will run just fine wont dip at all, this seems to only occur when i'm capturing a game, whether that be using the game capture or screen capture i will get the same result, just recording for example a cam wont do anything, any suggestions of what i could do/try?

What i have tried so far
Trying both X.264 (CPU) and H.264 (NVENC) - Same result
I have tried putting a higher priority on OBS - Same result
I have tried using only 2 cores for OBS and the rest for the game (including threads to total 4 for OBS) - Same result
I tried closing all unnecessary applications and just running OBS and a Game - Same result
I have tried older Nvidia drivers and I have tried older OBS versions - Same result

Old system specs
AsRock P67 Extreme 4
Intel i7 2600k @4,6Ghz
16GB DDR3 @1600Mhz
Gigabyte GTX970
850W PSU
SSD's & HDD's etc...

New system specs
Gigabyte Aorus X370 Gaming K5
AMD Ryzen 7 1700x @3,9Ghz (Stresstested and stable with temps not going above 65c)
16GB DDR4 @3000Mhz (2933)
Gigabyte GTX970
850W PSU
SSD's & HDD's etc...

Thanks in advance
Sebastian

Code:
19:16:38.865: CPU Name: AMD Ryzen 7 1700X Eight-Core Processor       
19:16:38.865: CPU Speed: 3900MHz
19:16:38.865: Physical Cores: 8, Logical Cores: 16
19:16:38.865: Physical Memory: 16332MB Total, 8069MB Free
19:16:38.865: Windows Version: 10.0 Build 15063 (revision: 296; 64-bit)
19:16:38.865: Running as administrator: true
19:16:38.865: Aero is Enabled (Aero is always on for windows 8 and above)
19:16:38.865: Portable mode: false
19:16:38.875: OBS 19.0.2 (64bit, windows)
19:16:38.875: ---------------------------------
19:16:38.875: ---------------------------------
19:16:38.876: audio settings reset:
19:16:38.876:     samples per sec: 44100
19:16:38.876:     speakers:        2
19:16:38.876: ---------------------------------
19:16:38.876: Initializing D3D11...
19:16:38.876: Available Video Adapters:
19:16:38.877:     Adapter 1: NVIDIA GeForce GTX 970
19:16:38.877:      Dedicated VRAM: 4256628736
19:16:38.877:      Shared VRAM:    4268048384
19:16:38.877:      output 1: pos={0, 0}, size={1920, 1080}, attached=true
19:16:38.877:      output 2: pos={-1920, 0}, size={1920, 1200}, attached=true
19:16:38.879: Loading up D3D11 on adapter NVIDIA GeForce GTX 970 (0)
19:16:39.315: D3D11 loaded successfully, feature level used: 45056
19:16:39.965: ---------------------------------
19:16:39.965: video settings reset:
19:16:39.965:     base resolution:   1920x1080
19:16:39.965:     output resolution: 1920x1080
19:16:39.965:     downscale filter:  Bicubic
19:16:39.965:     fps:               60/1
19:16:39.965:     format:            RGBA
19:16:39.966: GPU conversion not available for format: 6
19:16:39.967: Audio monitoring device:
19:16:39.967:     name: Standard
19:16:39.967:     id: default
19:16:39.967: ---------------------------------
19:16:39.968: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
19:16:39.969: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
19:16:39.970: [AMF] Encountered Exception during AMF initialization: Unable to load 'amfrt64.dll', error code 126.
19:16:39.970: Failed to initialize module 'enc-amf.dll'
19:16:39.977: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
19:16:39.977: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
19:16:39.978: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
19:16:39.978: Failed to load 'en-US' text for module: 'obs-browser.dll'
19:16:39.978: [browser_source: 'Version: 1.29.0']
19:16:39.980: NVENC supported
19:16:40.026: Couldn't find VLC installation, VLC video source disabled
19:16:40.029: No blackmagic support
19:16:40.079: ---------------------------------
19:16:40.079:   Loaded Modules:
19:16:40.079:     win-wasapi.dll
19:16:40.079:     win-mf.dll
19:16:40.079:     win-dshow.dll
19:16:40.079:     win-decklink.dll
19:16:40.079:     win-capture.dll
19:16:40.079:     vlc-video.dll
19:16:40.079:     text-freetype2.dll
19:16:40.079:     rtmp-services.dll
19:16:40.079:     obs-x264.dll
19:16:40.079:     obs-vst.dll
19:16:40.079:     obs-transitions.dll
19:16:40.079:     obs-text.dll
19:16:40.079:     obs-qsv11.dll
19:16:40.079:     obs-outputs.dll
19:16:40.079:     obs-filters.dll
19:16:40.079:     obs-ffmpeg.dll
19:16:40.079:     obs-browser.dll
19:16:40.079:     image-source.dll
19:16:40.079:     frontend-tools.dll
19:16:40.079:     enc-amf.dll
19:16:40.079:     coreaudio-encoder.dll
19:16:40.079: ==== Startup complete ===============================================
19:16:40.079: Service '' not found
19:16:40.080: All scene data cleared
19:16:40.080: ------------------------------------------------
19:16:40.115: WASAPI: Device 'Högtalare (Realtek High Definition Audio)' initialized
19:16:40.131: WASAPI: Device 'Mikrofon (USB Audio CODEC )' initialized
19:16:40.158: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
19:16:44.167: Switched to scene 'Scen'
19:16:44.168: [game-capture: 'the division'] attempting to hook process: TheDivision.exe
19:16:44.170: ------------------------------------------------
19:16:44.170: Loaded scenes:
19:16:44.170: - scene 'Scen':
19:16:44.170:     - source: 'Bildskärmskälla' (monitor_capture)
19:16:44.170:     - source: 'fh3' (game_capture)
19:16:44.170:     - source: 'the division' (game_capture)
19:16:44.170:     - source: 'Fönsterkälla' (window_capture)
19:16:44.170:     - source: 'cam' (dshow_input)
19:16:44.170: - scene 'Scen 2':
19:16:44.170:     - source: 'cam' (dshow_input)
19:16:44.170: ------------------------------------------------
19:16:44.172: [game-capture: 'the division'] shared texture capture successful
19:16:44.227: ---------------------------------
19:16:44.227: [DShow Device: 'cam'] settings updated:
19:16:44.227:     video device: Microsoft® LifeCam Studio(TM)
19:16:44.227:     video path: \\?\usb#vid_045e&pid_0772&mi_00#7&1126d563&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c9223196}\global
19:16:44.227:     resolution: 1920x1080
19:16:44.227:     fps: 30.00 (interval: 333333)
19:16:44.227:     format: MJPEG
19:16:44.228: DShow: HDevice::ConnectPins: failed to connect pins (0x80040207):
19:18:24.511: ==== Shutting down ==================================================
19:18:24.519: Switched to scene '(null)'
19:18:24.520: [game-capture: 'the division'] capture stopped
19:18:24.661: WASAPI: Device 'Högtalare (Realtek High Definition Audio)' Terminated
19:18:24.665: WASAPI: Device 'Mikrofon (USB Audio CODEC )' Terminated
19:18:24.676: All scene data cleared
19:18:24.676: ------------------------------------------------
19:18:24.731: Freeing OBS context data
19:18:24.791: == Profiler Results =============================
19:18:24.791: run_program_init: 5384.25 ms
19:18:24.791:  ┣OBSApp::AppInit: 9.84 ms
19:18:24.791:  ┃ ┗OBSApp::InitLocale: 1.484 ms
19:18:24.791:  ┗OBSApp::OBSInit: 5369.13 ms
19:18:24.791:    ┣obs_startup: 1.214 ms
19:18:24.791:    ┗OBSBasic::OBSInit: 5344.07 ms
19:18:24.791:      ┣OBSBasic::InitBasicConfig: 0.285 ms
19:18:24.791:      ┣OBSBasic::ResetAudio: 0.201 ms
19:18:24.791:      ┣OBSBasic::ResetVideo: 1091.09 ms
19:18:24.791:      ┣OBSBasic::InitOBSCallbacks: 0.005 ms
19:18:24.791:      ┣OBSBasic::InitHotkeys: 0.042 ms
19:18:24.791:      ┣obs_load_all_modules: 111.951 ms
19:18:24.791:      ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.367 ms
19:18:24.791:      ┃ ┣obs_init_module(enc-amf.dll): 0.187 ms
19:18:24.791:      ┃ ┣obs_init_module(frontend-tools.dll): 1.194 ms
19:18:24.791:      ┃ ┣obs_init_module(image-source.dll): 0.004 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-browser.dll): 0.056 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.494 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-filters.dll): 0.007 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-outputs.dll): 0.005 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-qsv11.dll): 38.675 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-text.dll): 0.531 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-transitions.dll): 0.005 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-vst.dll): 0.002 ms
19:18:24.791:      ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
19:18:24.791:      ┃ ┣obs_init_module(rtmp-services.dll): 0.231 ms
19:18:24.791:      ┃ ┣obs_init_module(text-freetype2.dll): 0.038 ms
19:18:24.791:      ┃ ┣obs_init_module(vlc-video.dll): 0.028 ms
19:18:24.791:      ┃ ┣obs_init_module(win-capture.dll): 0.049 ms
19:18:24.791:      ┃ ┣obs_init_module(win-decklink.dll): 1.826 ms
19:18:24.791:      ┃ ┣obs_init_module(win-dshow.dll): 0.646 ms
19:18:24.791:      ┃ ┣obs_init_module(win-mf.dll): 46.411 ms
19:18:24.791:      ┃ ┣obs_init_module(win-wasapi.dll): 0.006 ms
19:18:24.791:      ┃ ┗reset_win32_symbol_paths: 0.07 ms
19:18:24.791:      ┣OBSBasic::ResetOutputs: 0.394 ms
19:18:24.791:      ┣OBSBasic::CreateHotkeys: 0.027 ms
19:18:24.791:      ┣OBSBasic::InitService: 0.099 ms
19:18:24.791:      ┣OBSBasic::InitPrimitives: 0.211 ms
19:18:24.791:      ┗OBSBasic::Load: 4090.54 ms
19:18:24.791: obs_hotkey_thread(25 ms): min=0.006 ms, median=0.009 ms, max=0.811 ms, 99th percentile=0.143 ms, 100% below 25 ms
19:18:24.791: audio_thread(Audio): min=0.001 ms, median=0.045 ms, max=0.89 ms, 99th percentile=0.145 ms
19:18:24.791: obs_video_thread(16.6667 ms): min=1.355 ms, median=1.883 ms, max=4030.21 ms, 99th percentile=4.086 ms, 99.9835% below 16.667 ms
19:18:24.791:  ┣tick_sources: min=0.001 ms, median=0.019 ms, max=4028.76 ms, 99th percentile=0.106 ms
19:18:24.791:  ┣render_displays: min=0.001 ms, median=0.162 ms, max=2.817 ms, 99th percentile=0.416 ms
19:18:24.791:  ┗output_frame: min=1.183 ms, median=1.687 ms, max=5.3 ms, 99th percentile=3.664 ms
19:18:24.791:    ┣gs_context(video->graphics): min=0.131 ms, median=0.388 ms, max=3.837 ms, 99th percentile=1.053 ms
19:18:24.791:    ┃ ┣render_video: min=0.023 ms, median=0.049 ms, max=2.591 ms, 99th percentile=0.557 ms
19:18:24.791:    ┃ ┃ ┣render_main_texture: min=0.003 ms, median=0.014 ms, max=1.055 ms, 99th percentile=0.049 ms
19:18:24.791:    ┃ ┃ ┣render_output_texture: min=0.003 ms, median=0.011 ms, max=0.259 ms, 99th percentile=0.026 ms
19:18:24.791:    ┃ ┃ ┗stage_output_texture: min=0.002 ms, median=0.011 ms, max=2.561 ms, 99th percentile=0.492 ms
19:18:24.791:    ┃ ┣download_frame: min=0.001 ms, median=0.245 ms, max=3.756 ms, 99th percentile=0.734 ms
19:18:24.791:    ┃ ┗gs_flush: min=0.03 ms, median=0.052 ms, max=1.417 ms, 99th percentile=0.267 ms
19:18:24.791:    ┗output_video_data: min=0.922 ms, median=1.287 ms, max=3.962 ms, 99th percentile=2.763 ms
19:18:24.791: video_thread(video): min=0.001 ms, median=0.002 ms, max=0.042 ms, 99th percentile=0.007 ms
19:18:24.791: =================================================
19:18:24.791: == Profiler Time Between Calls ==================
19:18:24.791: obs_hotkey_thread(25 ms): min=24.665 ms, median=25.085 ms, max=27.89 ms, 98.1969% within ±2% of 25 ms (0% lower, 1.80308% higher)
19:18:24.791: obs_video_thread(16.6667 ms): min=7.862 ms, median=16.667 ms, max=4030.22 ms, 98.8418% within ±2% of 16.667 ms (0.595632% lower, 0.562541% higher)
19:18:24.791: =================================================
19:18:24.819: Number of memory leaks: 1
 
Last edited by a moderator:

Joe33345

Member
Have you tried removing the Monitor Capture from your scene collection entirely? Remove it from all scenes, game capture the game and let me know what it does.
 

Zubre

New Member
Have you tried removing the Monitor Capture from your scene collection entirely? Remove it from all scenes, game capture the game and let me know what it does.

There was no difference as far as i could see, i have uploaded a sample displaying the FPS, and it clearly shows that the fps in the game is stable but OBS can't keep it recording at 60FPS for some reason.

https://youtu.be/Nn2XqacBCoc
 

Edwaylor

New Member
I have the same issue, dude. I had before an Intel Core i7 4790 and stream was good. And recently I upgraded to Ryzen 5 1600. Game works perfectly fine, but stream looks choppy and laggy.
 

Xaymar

Active Member
Code:
20:12:30.781: Output 'adv_file_output': Total encoded frames: 10847
20:12:30.781: Output 'adv_file_output': Total drawn frames: 10848
20:12:30.781: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 324 (3.0%)

Looks like your GPU is almost completely used by the game. Try limiting the games FPS to your monitor refresh rate and if you have any 'Game Mode' stuff enabled turn it off.
 

Zubre

New Member
Code:
20:12:30.781: Output 'adv_file_output': Total encoded frames: 10847
20:12:30.781: Output 'adv_file_output': Total drawn frames: 10848
20:12:30.781: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 324 (3.0%)

Looks like your GPU is almost completely used by the game. Try limiting the games FPS to your monitor refresh rate and if you have any 'Game Mode' stuff enabled turn it off.

As far as i know i have no game mode turned on, but i will check just to be sure, the FPS is limited to 60, and the problem occurs when i use X.264 as well, but the thing is that i'm using the same settings now as when i had the i7 2600k, and i never had any lags in OBS.
 
Last edited:
Top