Question / Help Having OBS open causes low fps in games [solved]

Tarbel

New Member
Setup:
* Windows 10 64 bit (120gb SATA III SSD)
* i7-2600k OC to 4.5 Ghz
* GTX 660 2x SLI
* 16Gb 1600MHz G.Skill RAM
* 7200rpm 750gb HDD (OBS install)
*Running Precision XOC, overclocked gpus to equalize gpu clocks and boost memory clock as bit (+50MHz gpu clock, +20MHz, +270MHz mem clock) and 110% power target
*Discord, Logitech gaming software, Onedrive, openhardwaremonitor, ROCCAT mouse driver, Intel rapid storage tech, Steam, Realtek HD Audio manager in taskbar


I've been using the NDI plugin to send the gameplay to different computer and stream on there. Used to have great/normal FPS on games while streaming with or without NDI. Now, opening OBS will cause the game to go from 140 fps to 40 fps. Game runs fine when OBS is not open, but once I open OBS, the fps drops and stays that way even after closing OBS. I have to restart game with OBS off for better fps, which sometimes fixes the low fps (but not low fps with OBS open).

I monitor my gpu and cpu temps + utilization when I play. Temps don't go much above 70 degrees C for gpu and 75 C for cpu, normally. Utilization doesn't go beyond 70% for 2 gpus and 60% for CPU threads. When it runs at low fps, I feel like overall, the temps and utilization are lower than normal. Checking the clocks with Precision XOC show they are running at the right clocks. I did notice one graphics card fluctuated exactly ~10Mhz during a Heaven benchmark.

Nvidia settings:
nvidia settings.GIF

SLI is enabled. I've tried using single gpu only for the game, and fps stayed the same. Running Novabench GPU test is around 120 fps without OBS and 110 fps with OBS open. I've tried rolling back Nvidia drivers to a previous edition, reinstalling, uninstalling with DDU and reinstalling and same thing.

For OBS, cpu usage shown on bottom right stays below 5% NDI output turned on, but usually below 2-3%. 1080p display res outputted to 720p or 648p with 40-50fps; the logs should be 648p output with 43.75 fps. Even with NDI output turned off, OBS seems to cause my game to drop to ~40 fps. Just having OBS open causes lag.

I'll comment the log while I just played the game (Dirty Bomb) with OBS NDI output on.
 

Tarbel

New Member
12:53:57.247: CPU Name: Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz
12:53:57.247: CPU Speed: 3400MHz
12:53:57.247: Physical Cores: 4, Logical Cores: 8
12:53:57.247: Physical Memory: 16351MB Total, 12448MB Free
12:53:57.247: Windows Version: 10.0 Build 17134 (revision: 48; 64-bit)
12:53:57.247: Running as administrator: true
12:53:57.247: Aero is Enabled (Aero is always on for windows 8 and above)
12:53:57.247: Windows 10 Gaming Features:
12:53:57.247: Game Bar: Off
12:53:57.247: Game DVR: Off
12:53:57.247: Game DVR Background Recording: Off
12:53:57.248: Sec. Software Status:
12:53:57.248: Windows Defender Antivirus: enabled (AV)
12:53:57.249: Malwarebytes: disabled (AV)
12:53:57.249: Windows Firewall: enabled (FW)
12:53:57.249: Malwarebytes: disabled (ASW)
12:53:57.249: Windows Defender Antivirus: enabled (ASW)
12:53:57.249: Portable mode: false
12:53:57.340: OBS 21.1.0 (64bit, windows)
12:53:57.340: ---------------------------------
12:53:57.341: ---------------------------------
12:53:57.341: audio settings reset:
12:53:57.341: samples per sec: 44100
12:53:57.341: speakers: 2
12:53:57.342: ---------------------------------
12:53:57.342: Initializing D3D11...
12:53:57.342: Available Video Adapters:
12:53:57.343: Adapter 1: NVIDIA GeForce GTX 660
12:53:57.343: Dedicated VRAM: 2040201216
12:53:57.343: Shared VRAM: 4277737472
12:53:57.343: output 1: pos={0, 0}, size={1920, 1080}, attached=true
12:53:57.345: Loading up D3D11 on adapter NVIDIA GeForce GTX 660 (0)
12:53:57.385: D3D11 loaded successfully, feature level used: 45056
12:53:57.943: ---------------------------------
12:53:57.943: video settings reset:
12:53:57.943: base resolution: 1920x1080
12:53:57.943: output resolution: 1152x648
12:53:57.943: downscale filter: Lanczos
12:53:57.943: fps: 175/4
12:53:57.943: format: NV12
12:53:57.943: YUV mode: 709/Full
12:53:57.945: Audio monitoring device:
12:53:57.945: name: Speakers (Realtek High Definition Audio)
12:53:57.945: id: {0.0.0.00000000}.{cbb44496-bcc0-4572-8900-98945143a905}
12:53:57.945: ---------------------------------
12:53:57.946: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
12:53:57.948: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
12:53:57.966: [AMF] AMF Test failed due to one or more errors.
12:53:57.966: Failed to initialize module 'enc-amf.dll'
12:53:57.974: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
12:53:57.974: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
12:53:57.974: (127)
12:53:57.974: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
12:53:57.975: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
12:53:57.976: [browser_source: 'Version: 1.31.0']
12:53:57.978: NVENC supported
12:53:57.979: [obs-ndi] hello ! (version 4.4.0)
12:53:57.979: [obs-ndi] Trying 'C:\Program Files\NewTek\NewTek NDI Redist\v3'
12:53:57.979: [obs-ndi] Found NDI library at 'C:/Program Files/NewTek/NewTek NDI Redist/v3/Processing.NDI.Lib.x64.dll'
12:53:57.982: [obs-ndi] NDI runtime loaded successfully
12:53:57.984: [obs-ndi] NDI library initialized successfully
12:53:57.992: [obs-ndi] starting main NDI output with name 'MY STREAM'
12:53:57.995: [obs-ndi] asynchronous video sending disabled
12:53:58.036: Couldn't find VLC installation, VLC video source disabled
12:53:58.039: No blackmagic support
12:53:58.041: ---------------------------------
12:53:58.041: Loaded Modules:
12:53:58.041: win-wasapi.dll
12:53:58.041: win-mf.dll
12:53:58.041: win-dshow.dll
12:53:58.041: win-decklink.dll
12:53:58.041: win-capture.dll
12:53:58.041: vlc-video.dll
12:53:58.041: text-freetype2.dll
12:53:58.041: rtmp-services.dll
12:53:58.041: obs-x264.dll
12:53:58.041: obs-vst.dll
12:53:58.041: obs-transitions.dll
12:53:58.041: obs-text.dll
12:53:58.041: obs-qsv11.dll
12:53:58.041: obs-outputs.dll
12:53:58.041: obs-ndi.dll
12:53:58.041: obs-filters.dll
12:53:58.041: obs-ffmpeg.dll
12:53:58.041: obs-browser.dll
12:53:58.041: image-source.dll
12:53:58.041: frontend-tools.dll
12:53:58.041: enc-amf.dll
12:53:58.041: coreaudio-encoder.dll
12:53:58.041: ---------------------------------
12:53:58.041: ==== Startup complete ===============================================
12:53:58.046: All scene data cleared
12:53:58.046: ------------------------------------------------
12:53:58.092: WASAPI: Device 'Speakers (Realtek High Definition Audio)' initialized
12:53:58.107: WASAPI: Device 'Microphone (Samson C01U )' initialized
12:53:58.145: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
12:53:58.625: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
12:53:58.948: warning: Stream #0: not enough frames to estimate rate; consider increasing probesize
12:53:59.330: Switched to scene 'GAME'
12:53:59.330: ------------------------------------------------
12:53:59.330: Loaded scenes:
12:53:59.330: - scene 'Starting up':
12:53:59.330: - source: 'bkg slide' (slideshow)
12:53:59.330: - source: 'awetroll static' (image_source)
12:53:59.330: - source: 'Chat' (browser_source)
12:53:59.330: - source: 'Stream starts' (text_gdiplus)
12:53:59.330: - source: 'wtf' (image_source)
12:53:59.330: - source: 'join steamgroup' (text_gdiplus)
12:53:59.330: - source: 'additional terms' (text_gdiplus)
12:53:59.330: - source: 'Donates' (browser_source)
12:53:59.330: - source: 'Follow Alert' (browser_source)
12:53:59.330: - source: 'Hosted' (browser_source)
12:53:59.330: - scene 'GAME':
12:53:59.330: - source: 'bkg slide' (slideshow)
12:53:59.330: - source: 'awetroll static' (image_source)
12:53:59.330: - source: 'VARENCILATOR' (text_gdiplus)
12:53:59.330: - source: 'Fortnite' (game_capture)
12:53:59.330: - source: 'OTHERGAME' (game_capture)
12:53:59.330: - source: 'DB CAPTURE' (game_capture)
12:53:59.330: - source: 'Streamelements OVERLAY' (browser_source)
12:53:59.330: - scene 'DB':
12:53:59.330: - source: 'bkg slide' (slideshow)
12:53:59.330: - source: 'awetroll static' (image_source)
12:53:59.330: - source: 'DB CAPTURE' (game_capture)
12:53:59.330: - source: 'Video Capture Device' (dshow_input)
12:53:59.330: - monitoring: monitor only
12:53:59.330: - source: 'Cam overlay' (image_source)
12:53:59.330: - source: 'VARENCILATOR' (text_gdiplus)
12:53:59.330: - source: 'awetroll static' (image_source)
12:53:59.330: - source: 'Streamelements OVERLAY' (browser_source)
12:53:59.330: - scene 'BRB':
12:53:59.330: - source: 'brb troll images' (slideshow)
12:53:59.330: - source: 'awetrollplug' (text_gdiplus)
12:53:59.330: - source: 'Text (GDI+)' (text_gdiplus)
12:53:59.330: - filter: 'Scroll' (scroll_filter)
12:53:59.330: - source: 'Streamelements OVERLAY' (browser_source)
12:53:59.330: - source: 'Donates' (browser_source)
12:53:59.330: - source: 'Follow Alert' (browser_source)
12:53:59.330: - source: 'Hosted' (browser_source)
12:53:59.330: - scene 'PODCAST':
12:53:59.330: - source: 'bkg slide' (slideshow)
12:53:59.330: - source: 'wtf' (image_source)
12:53:59.330: - source: 'Podcast' (text_gdiplus)
12:53:59.330: - source: 'join steamgroup' (text_gdiplus)
12:53:59.330: - source: 'additional terms' (text_gdiplus)
12:53:59.330: - source: 'Dirty Bomb and' (text_gdiplus)
12:53:59.330: - source: 'Streamelements OVERLAY' (browser_source)
12:53:59.330: - scene 'Othergame':
12:53:59.330: - source: 'bkg slide' (slideshow)
12:53:59.330: - source: 'awetroll static' (image_source)
12:53:59.330: - source: 'Fortnite' (game_capture)
12:53:59.330: - source: 'OTHERGAME' (game_capture)
12:53:59.330: - source: 'Donates' (browser_source)
12:53:59.330: - source: 'Follow Alert' (browser_source)
12:53:59.330: - source: 'Hosted' (browser_source)
12:53:59.330: - source: 'Streamelements OVERLAY' (browser_source)
12:53:59.330: - scene 'Super face':
12:53:59.330: - source: 'bkg slide' (slideshow)
12:53:59.330: - source: 'Video Capture Device' (dshow_input)
12:53:59.330: - monitoring: monitor only
12:53:59.330: - source: 'Streamelements OVERLAY' (browser_source)
12:53:59.330: ------------------------------------------------
12:54:03.144: ==== Shutting down ==================================================
12:54:03.152: [obs-ndi] stopping main NDI output
12:54:03.152: Output 'main_ndi_output': stopping
12:54:03.152: Output 'main_ndi_output': Total frames output: 224
12:54:03.152: Output 'main_ndi_output': Total drawn frames: 174 (225 attempted)
12:54:03.152: Output 'main_ndi_output': Number of lagged frames due to rendering lag/stalls: 51 (22.7%)
12:54:03.190: Switched to scene '(null)'
12:54:03.203: WASAPI: Device 'Speakers (Realtek High Definition Audio)' Terminated
12:54:03.214: WASAPI: Device 'Microphone (Samson C01U )' Terminated
12:54:03.343: All scene data cleared
12:54:03.343: ------------------------------------------------
12:54:03.404: Freeing OBS context data
12:54:03.406: [obs-ndi] goodbye !
12:54:03.487: [Scripting] Total detached callbacks: 0
12:54:03.490: == Profiler Results =============================
12:54:03.490: run_program_init: 2406.69 ms
12:54:03.490: ┣OBSApp::AppInit: 13.133 ms
12:54:03.490: ┃ ┗OBSApp::InitLocale: 1.1 ms
12:54:03.490: ┗OBSApp::OBSInit: 2382.38 ms
12:54:03.490: ┣obs_startup: 2.587 ms
12:54:03.490: ┗OBSBasic::OBSInit: 2042.03 ms
12:54:03.490: ┣OBSBasic::InitBasicConfig: 0.369 ms
12:54:03.490: ┣OBSBasic::ResetAudio: 0.113 ms
12:54:03.490: ┣OBSBasic::ResetVideo: 604.038 ms
12:54:03.490: ┣OBSBasic::InitOBSCallbacks: 0.006 ms
12:54:03.490: ┣OBSBasic::InitHotkeys: 0.037 ms
12:54:03.490: ┣obs_load_all_modules: 96.101 ms
12:54:03.490: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.573 ms
12:54:03.490: ┃ ┣obs_init_module(enc-amf.dll): 18.026 ms
12:54:03.490: ┃ ┣obs_init_module(frontend-tools.dll): 2.853 ms
12:54:03.490: ┃ ┣obs_init_module(image-source.dll): 0.016 ms
12:54:03.490: ┃ ┣obs_init_module(obs-browser.dll): 0.048 ms
12:54:03.490: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.483 ms
12:54:03.490: ┃ ┃ ┗nvenc_check: 0.457 ms
12:54:03.490: ┃ ┣obs_init_module(obs-filters.dll): 0.016 ms
12:54:03.490: ┃ ┣obs_init_module(obs-ndi.dll): 16.22 ms
12:54:03.490: ┃ ┣obs_init_module(obs-outputs.dll): 0.005 ms
12:54:03.490: ┃ ┣obs_init_module(obs-qsv11.dll): 35.064 ms
12:54:03.490: ┃ ┣obs_init_module(obs-text.dll): 0.146 ms
12:54:03.490: ┃ ┣obs_init_module(obs-transitions.dll): 0.005 ms
12:54:03.490: ┃ ┣obs_init_module(obs-vst.dll): 0.001 ms
12:54:03.490: ┃ ┣obs_init_module(obs-x264.dll): 0.001 ms
12:54:03.490: ┃ ┣obs_init_module(rtmp-services.dll): 0.013 ms
12:54:03.490: ┃ ┣obs_init_module(text-freetype2.dll): 0.035 ms
12:54:03.490: ┃ ┣obs_init_module(vlc-video.dll): 0.033 ms
12:54:03.490: ┃ ┣obs_init_module(win-capture.dll): 0.045 ms
12:54:03.490: ┃ ┣obs_init_module(win-decklink.dll): 1.739 ms
12:54:03.490: ┃ ┣obs_init_module(win-dshow.dll): 0.702 ms
12:54:03.490: ┃ ┣obs_init_module(win-mf.dll): 0 ms
12:54:03.490: ┃ ┣obs_init_module(win-wasapi.dll): 0.003 ms
12:54:03.490: ┃ ┗reset_win32_symbol_paths: 0.058 ms
12:54:03.490: ┣OBSBasic::ResetOutputs: 0.348 ms
12:54:03.490: ┣OBSBasic::CreateHotkeys: 0.022 ms
12:54:03.490: ┣OBSBasic::InitService: 0.966 ms
12:54:03.490: ┣OBSBasic::InitPrimitives: 0.279 ms
12:54:03.490: ┗OBSBasic::Load: 1287.76 ms
12:54:03.490: obs_hotkey_thread(25 ms): min=0.002 ms, median=0.007 ms, max=2.206 ms, 99th percentile=1.216 ms, 100% below 25 ms
12:54:03.490: audio_thread(Audio): min=0 ms, median=0.058 ms, max=0.404 ms, 99th percentile=0.165 ms
12:54:03.490: obs_graphics_thread(22.8571 ms): min=0.225 ms, median=0.913 ms, max=1183.32 ms, 99th percentile=49.233 ms, 98.3957% below 22.857 ms
12:54:03.490: ┣tick_sources: min=0.002 ms, median=0.023 ms, max=1175.63 ms, 99th percentile=12.479 ms
12:54:03.490: ┣output_frame: min=0.221 ms, median=0.684 ms, max=2.84 ms, 99th percentile=1.413 ms
12:54:03.490: ┃ ┣gs_context(video->graphics): min=0.178 ms, median=0.497 ms, max=2.677 ms, 99th percentile=1.2 ms
12:54:03.490: ┃ ┃ ┣render_video: min=0.015 ms, median=0.087 ms, max=0.714 ms, 99th percentile=0.636 ms
12:54:03.490: ┃ ┃ ┃ ┣render_main_texture: min=0.005 ms, median=0.06 ms, max=0.687 ms, 99th percentile=0.612 ms
12:54:03.490: ┃ ┃ ┃ ┣render_output_texture: min=0.003 ms, median=0.01 ms, max=0.155 ms, 99th percentile=0.092 ms
12:54:03.490: ┃ ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.009 ms, max=0.031 ms, 99th percentile=0.027 ms
12:54:03.490: ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.003 ms, max=0.007 ms, 99th percentile=0.005 ms
12:54:03.490: ┃ ┃ ┣download_frame: min=0 ms, median=0.004 ms, max=0.092 ms, 99th percentile=0.008 ms
12:54:03.490: ┃ ┃ ┗gs_flush: min=0.107 ms, median=0.401 ms, max=2.417 ms, 99th percentile=0.807 ms
12:54:03.490: ┃ ┗output_video_data: min=0.137 ms, median=0.18 ms, max=0.462 ms, 99th percentile=0.437 ms
12:54:03.490: ┗render_displays: min=0 ms, median=0.142 ms, max=48.604 ms, 99th percentile=28.122 ms
12:54:03.490: video_thread(video): min=0.001 ms, median=2.01 ms, max=70.275 ms, 99th percentile=3.757 ms
12:54:03.490: =================================================
12:54:03.490: == Profiler Time Between Calls ==================
12:54:03.490: obs_hotkey_thread(25 ms): min=25.143 ms, median=25.992 ms, max=27.837 ms, 2.12766% within ±2% of 25 ms (0% lower, 97.8723% higher)
12:54:03.490: obs_graphics_thread(22.8571 ms): min=5.245 ms, median=22.857 ms, max=1183.33 ms, 97.3118% within ±2% of 22.857 ms (1.07527% lower, 1.6129% higher)
12:54:03.490: =================================================
12:54:03.499: Number of memory leaks: 9
 

R1CH

Forum Admin
Developer
You need to install OBS Studio 21.1.2 from the downloads page. The updater in 21.1.0 unfortunately isn't working, and 21.1.2 is needed to fix FPS loss from the new Windows 10 update.
 
Top