Question / Help massive fps drop with obs open (no recording or streaming)

xAphex

New Member
today i tried to record minecraft with obs, i noticed that if i open obs and and go to the game in fullscreen my fps goes from 150-200 to 30, i only open obs, no recording or streaming is running.

11:20:54.525: CPU Name: Intel(R) Core(TM) i5-4460 CPU @ 3.20GHz
11:20:54.525: CPU Speed: 3192MHz
11:20:54.525: Physical Cores: 4, Logical Cores: 4
11:20:54.525: Physical Memory: 8065MB Total, 6003MB Free
11:20:54.525: Windows Version: 6.1 Build 7601 (revision: 23392)
11:20:54.525: Running as administrator: true
11:20:54.525: Aero is Enabled
11:20:54.566: OBS 0.15.4 (64bit, windows)
11:20:54.566: ---------------------------------
11:20:54.567: ---------------------------------
11:20:54.567: audio settings reset:
11:20:54.567: samples per sec: 48000
11:20:54.567: speakers: 2
11:20:54.608: ---------------------------------
11:20:54.608: Initializing D3D11..
11:20:54.608: Available Video Adapters:
11:20:54.612: Adapter 1: Intel(R) HD Graphics 4600
11:20:54.612: Dedicated VRAM: 67108864
11:20:54.612: Shared VRAM: 1711276032
11:20:54.612: output 1: pos={0, 0}, size={1360, 768}, attached=true
11:20:54.655: Loading up D3D11 on adapter Intel(R) HD Graphics 4600 (0)
11:20:54.820: D3D11 loaded sucessfully, feature level used: 45056
11:20:55.929: ---------------------------------
11:20:55.929: video settings reset:
11:20:55.929: base resolution: 1360x768
11:20:55.929: output resolution: 1360x768
11:20:55.929: fps: 60/1
11:20:55.929: format: NV12
11:20:55.930: ---------------------------------
11:20:56.349: [CoreAudio encoder]: Adding CoreAudio AAC encoder
11:20:56.534: NVENC supported
11:20:57.134: Couldn't find VLC installation, VLC video source disabled
11:20:59.002: No blackmagic support
11:20:59.195: [Media Foundation encoder]: plugin is disabled for performance reasons on Windows versions prior to 8
11:20:59.428: ---------------------------------
11:20:59.428: Loaded Modules:
11:20:59.428: win-wasapi.dll
11:20:59.428: win-mf.dll
11:20:59.428: win-dshow.dll
11:20:59.428: win-decklink.dll
11:20:59.428: win-capture.dll
11:20:59.428: vlc-video.dll
11:20:59.428: text-freetype2.dll
11:20:59.428: rtmp-services.dll
11:20:59.428: obs-x264.dll
11:20:59.428: obs-transitions.dll
11:20:59.428: obs-qsv11.dll
11:20:59.428: obs-outputs.dll
11:20:59.428: obs-filters.dll
11:20:59.428: obs-ffmpeg.dll
11:20:59.428: image-source.dll
11:20:59.428: coreaudio-encoder.dll
11:20:59.428: ==== Startup complete ===============================================
11:20:59.640: All scene data cleared
11:20:59.640: ------------------------------------------------
11:20:59.692: WASAPI: Device 'Speakers (Realtek High Definition Audio)' initialized
11:20:59.721: WASAPI: Device 'CABLE Output (VB-Audio Virtual Cable)' initialized
11:20:59.723: Switched to scene 'Screen Capture'
11:20:59.723: ------------------------------------------------
11:20:59.723: Loaded scenes:
11:20:59.723: - scene 'Screen Capture':
11:20:59.723: - source: 'Game Capture' (game_capture)
11:20:59.723: ------------------------------------------------
11:20:59.730: adding 42 milliseconds of audio buffering, total audio buffering is now 42 milliseconds
11:21:00.445: Update check: last known remote version is 0.15.4
11:21:05.036: Failed to read log file C:\Users\Gabi\AppData\Roaming\obs-studio/logs/
11:22:06.396: ==== Shutting down ==================================================
11:22:06.398: Switched to scene '(null)'
11:22:06.399: WASAPI: Device 'Speakers (Realtek High Definition Audio)' Terminated
11:22:06.408: WASAPI: Device 'CABLE Output (VB-Audio Virtual Cable)' Terminated
11:22:06.409: All scene data cleared
11:22:06.409: ------------------------------------------------
11:22:06.433: Freeing OBS context data
11:22:06.495: == Profiler Results =============================
11:22:06.495: run_program_init: 5647.15 ms
11:22:06.495: ┣OBSApp::AppInit: 97.306 ms
11:22:06.495: ┃ ┗OBSApp::InitLocale: 72.241 ms
11:22:06.495: ┗OBSApp::OBSInit: 5446.67 ms
11:22:06.495: ┣obs_startup: 1.909 ms
11:22:06.495: ┗OBSBasic::OBSInit: 5241.69 ms
11:22:06.495: ┣OBSBasic::InitBasicConfig: 0.406 ms
11:22:06.496: ┣OBSBasic::ResetAudio: 0.221 ms
11:22:06.496: ┣OBSBasic::ResetVideo: 1362.87 ms
11:22:06.496: ┣OBSBasic::InitOBSCallbacks: 0.066 ms
11:22:06.496: ┣OBSBasic::InitHotkeys: 0.14 ms
11:22:06.496: ┣obs_load_all_modules: 3496.7 ms
11:22:06.496: ┃ ┣obs_init_module(coreaudio-encoder.dll): 368.299 ms
11:22:06.496: ┃ ┣obs_init_module(image-source.dll): 0.003 ms
11:22:06.496: ┃ ┣obs_init_module(obs-ffmpeg.dll): 130.134 ms
11:22:06.496: ┃ ┣obs_init_module(obs-filters.dll): 0.008 ms
11:22:06.496: ┃ ┣obs_init_module(obs-outputs.dll): 0.003 ms
11:22:06.496: ┃ ┣obs_init_module(obs-qsv11.dll): 147.801 ms
11:22:06.496: ┃ ┣obs_init_module(obs-transitions.dll): 0.007 ms
11:22:06.496: ┃ ┣obs_init_module(obs-x264.dll): 0.003 ms
11:22:06.496: ┃ ┣obs_init_module(rtmp-services.dll): 9.756 ms
11:22:06.496: ┃ ┣obs_init_module(text-freetype2.dll): 42.021 ms
11:22:06.496: ┃ ┣obs_init_module(vlc-video.dll): 0.049 ms
11:22:06.496: ┃ ┣obs_init_module(win-capture.dll): 1811.03 ms
11:22:06.496: ┃ ┣obs_init_module(win-decklink.dll): 8.241 ms
11:22:06.496: ┃ ┣obs_init_module(win-dshow.dll): 35.204 ms
11:22:06.496: ┃ ┣obs_init_module(win-mf.dll): 225.085 ms
11:22:06.496: ┃ ┣obs_init_module(win-wasapi.dll): 0.008 ms
11:22:06.496: ┃ ┗reset_win32_symbol_paths: 1.648 ms
11:22:06.496: ┣OBSBasic::ResetOutputs: 179.776 ms
11:22:06.496: ┣OBSBasic::CreateHotkeys: 0.188 ms
11:22:06.496: ┣OBSBasic::InitService: 11.155 ms
11:22:06.496: ┣OBSBasic::InitPrimitives: 0.491 ms
11:22:06.496: ┗OBSBasic::Load: 103.898 ms
11:22:06.496: obs_hotkey_thread(25 ms): min=0.001 ms, median=0.013 ms, max=0.549 ms, 99th percentile=0.223 ms, 100% below 25 ms
11:22:06.496: audio_thread(Audio): min=0 ms, median=0.045 ms, max=0.235 ms, 99th percentile=0.142 ms
11:22:06.496: obs_video_thread(16.6667 ms): min=0.359 ms, median=0.687 ms, max=12.175 ms, 99th percentile=1.841 ms, 100% below 16.667 ms
11:22:06.496: ┣tick_sources: min=0.001 ms, median=0.007 ms, max=0.115 ms, 99th percentile=0.035 ms
11:22:06.496: ┣render_displays: min=0.001 ms, median=0.198 ms, max=6.12 ms, 99th percentile=0.655 ms
11:22:06.496: ┗output_frame: min=0.322 ms, median=0.471 ms, max=12.173 ms, 99th percentile=1.368 ms
11:22:06.496: ┣gs_context(video->graphics): min=0.084 ms, median=0.091 ms, max=12.172 ms, 99th percentile=0.289 ms
11:22:06.496: ┃ ┣render_video: min=0.05 ms, median=0.055 ms, max=11.89 ms, 99th percentile=0.178 ms
11:22:06.496: ┃ ┃ ┣render_main_texture: min=0.003 ms, median=0.005 ms, max=11.858 ms, 99th percentile=0.032 ms
11:22:06.496: ┃ ┃ ┣render_output_texture: min=0.01 ms, median=0.026 ms, max=2.249 ms, 99th percentile=0.087 ms
11:22:06.496: ┃ ┃ ┣render_convert_texture: min=0 ms, median=0.013 ms, max=0.291 ms, 99th percentile=0.045 ms
11:22:06.496: ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.009 ms, max=2.777 ms, 99th percentile=0.039 ms
11:22:06.496: ┃ ┣download_frame: min=0 ms, median=0.004 ms, max=0.206 ms, 99th percentile=0.018 ms
11:22:06.496: ┃ ┗gs_flush: min=0.028 ms, median=0.031 ms, max=3.283 ms, 99th percentile=0.108 ms
11:22:06.496: ┗output_video_data: min=0.21 ms, median=0.363 ms, max=1.605 ms, 99th percentile=1.141 ms
11:22:06.496: video_thread(video): min=0 ms, median=0.002 ms, max=0.134 ms, 99th percentile=0.013 ms
11:22:06.496: =================================================
11:22:06.496: == Profiler Time Between Calls ==================
11:22:06.496: obs_hotkey_thread(25 ms): min=24.872 ms, median=25.001 ms, max=25.11 ms, 100% within ±2% of 25 ms (0% lower, 0% higher)
11:22:06.496: obs_video_thread(16.6667 ms): min=16.253 ms, median=16.667 ms, max=17.081 ms, 99.9527% within ±2% of 16.667 ms (0.0236518% lower, 0.0236518% higher)
11:22:06.496: =================================================
11:22:06.515: Number of memory leaks: 0

Thanks,
Gabriel.
 
Last edited:

xAphex

New Member

Harold

Active Member
11:51:32.453: [game-capture: 'Game Capture'] gl_shtex_init_gl_tex: failed to open device
11:51:32.453: [game-capture: 'Game Capture'] ------------------ gl capture freed ------------------
11:51:32.453: [game-capture: 'Game Capture'] gl memory capture successful
Looks like something's blocking the game capture from getting an optimal capture hook.
 

xAphex

New Member
Try Studio portable mode: https://obsproject.com/forum/resources/obs-and-obs-studio-portable-mode-on-windows.359/

Until this error is gone:

Failed to read log file

then try to disable Windows Aero and switch off Studio's Preview. By the way with v-sync ON your game must render not more than 60fps for your monitor and this is normal.
i did all that, here's the log: the problem still occurs, what i noticed is that the fps gets limited to 30, it's like OBS is forcing 30 FPS
 

Suslik V

Active Member
Look, when I tested win7x64 system and OBS Studio v0.15.4 with 'Display Capture' source and integrated video, the most impact on the system causes by Enable desktop composition setting. When Enable desktop composition it turned ON in Windows and OBS Studio Preview enabled, my PC CPU utilization and RAM usage rockets up into the sky:

from ~0% and ~2 056KB (Enable desktop composition is OFF; OBS Studio Preview is ON)
to ~10% and ~100 000KB (Enable desktop composition is ON; OBS Studio Preview is ON)

If I disable OBS Studio Preview it make things even worse:
from ~0% and ~2 024KB (Enable desktop composition is OFF; OBS Studio Preview is ON)
to ~15% and ~900 000KB (Enable desktop composition is ON; OBS Studio Preview is OFF)

RAM usage and CPU utilization is for Desktop Window Manager Session Manager (dwm.exe) process from Task Manager (unfortunately power is set to 'balance' by default as most users do, but CPU always running at 1700MHz and GPU is throttling a bit in all the tests - info by Open Hardware Monitor application). More over, the RAM usage rapidly changes in case of Enable desktop composition it turned ON. It's no good.

That's why I'm asked you to turn off OBS Studio Preview and compare. Turn off Aero and compare. Maybe it is not quite clear, because I mentioned only Aero itself not the desktop composition setting. But... OK nothing to do with it.

Results obtained for AMD E2-1800 APU @ 1700MHz (reported by OBS Studio), 1600x900@60Hz. Win7x64.

Edit: turning OBS Studio Preview ON and OFF has no influence to CPU and RAM if Enable desktop composition is OFF (at least for dwm.exe from Task Manager).

Edit 2: it is not 'Game Capture' test.

Edit 3: for 'Game Capture' and Enable desktop composition is ON, dwm.exe simply eats ~25 068KB RAM and ~3% CPU and has more stuttering (not recording test).
 
Last edited:

xAphex

New Member
Look, when I tested win7x64 system and OBS Studio v0.15.4 with 'Display Capture' source and integrated video, the most impact on the system causes by Enable desktop composition setting. When Enable desktop composition it turned ON in Windows and OBS Studio Preview enabled, my PC CPU utilization and RAM usage rockets up into the sky:

from ~0% and ~2 056KB (Enable desktop composition is OFF; OBS Studio Preview is ON)
to ~10% and ~100 000KB (Enable desktop composition is ON; OBS Studio Preview is ON)

If I disable OBS Studio Preview it make things even worse:
from ~0% and ~2 024KB (Enable desktop composition is OFF; OBS Studio Preview is ON)
to ~15% and ~900 000KB (Enable desktop composition is ON; OBS Studio Preview is OFF)

RAM usage and CPU utilization is for Desktop Window Manager Session Manager (dwm.exe) process from Task Manager (unfortunately power is set to 'balance' by default as most users do, but CPU always running at 1700MHz and GPU is throttling a bit in all the tests - info by Open Hardware Monitor application). More over, the RAM usage rapidly changes in case of Enable desktop composition it turned ON. It's no good.

That's why I'm asked you to turn off OBS Studio Preview and compare. Turn off Aero and compare. Maybe it is not quite clear, because I mentioned only Aero itself not the desktop composition setting. But... OK nothing to do with it.

Results obtained for AMD E2-1800 APU @ 1700MHz (reported by OBS Studio), 1600x900@60Hz. Win7x64.

Edit: turning OBS Studio Preview ON and OFF has no influence to CPU and RAM if Enable desktop composition is OFF (at least for dwm.exe from Task Manager).

Edit 2: it is not 'Game Capture' test.

Edit 3: for 'Game Capture' and Enable desktop composition is ON, dwm.exe simply eats ~25 068KB RAM and ~3% CPU and has more stuttering (not recording test).
20:56:53.501: [game-capture: 'Game Capture'] gl_shtex_init_gl_tex: failed to open device
do you have any experience with this error?
 

Suslik V

Active Member
No.
But I see that you are using Multi-adapter Compatibility option. Why?

Normal message should look like:
[game-capture: 'Game Capture'] Shared-texture OpenGL capture available
[game-capture: 'Game Capture'] gl shared texture capture successful

if you not using OpenGL renderer in Studio.
 
Top