Question / Help DX11 Game (BSI) stuttering when OBS captures game?

lihp

New Member
Hi,

Last month I was able to capture BioShock Infinite without any problems, but testing it again today the game stutters when OBS is capturing the game (Game Capture). If OBS is closed it runs perfectly smooth but the second I open OBS and it hooks the game (even if I'm not recording, just previewing) the game starts stuttering.

This is on a clean install of Windows 10 (Creators Update), I had the same problem with DX9 games but OBS 18.0.2 fixed that.

Any ideas what might be causing this?

Code:
20:29:05.647: CPU Name: Intel(R) Core(TM) i7-4790K CPU @ 4.00GHz
20:29:05.647: CPU Speed: 4000MHz
20:29:05.647: Physical Cores: 4, Logical Cores: 8
20:29:05.647: Physical Memory: 16263MB Total, 12234MB Free
20:29:05.647: Windows Version: 10.0 Build 15063 (revision: 138; 64-bit)
20:29:05.647: Running as administrator: false
20:29:05.647: Aero is Enabled (Aero is always on for windows 8 and above)
20:29:05.647: Portable mode: true
20:29:05.653: OBS 18.0.2 (64bit, windows)
20:29:05.654: ---------------------------------
20:29:05.654: ---------------------------------
20:29:05.654: audio settings reset:
20:29:05.654:     samples per sec: 44100
20:29:05.654:     speakers:        2
20:29:05.655: ---------------------------------
20:29:05.655: Initializing D3D11..
20:29:05.655: Available Video Adapters:
20:29:05.655:     Adapter 1: NVIDIA GeForce GTX 1070
20:29:05.655:      Dedicated VRAM: 4219404288
20:29:05.655:      Shared VRAM:    4231958528
20:29:05.655:      output 1: pos={0, 0}, size={1920, 1080}, attached=true
20:29:05.655:      output 2: pos={1920, 0}, size={1920, 1080}, attached=true
20:29:05.657: Loading up D3D11 on adapter NVIDIA GeForce GTX 1070 (0)
20:29:05.675: D3D11 loaded sucessfully, feature level used: 45056
20:29:06.208: ---------------------------------
20:29:06.208: video settings reset:
20:29:06.208:     base resolution:   1920x1080
20:29:06.208:     output resolution: 1280x720
20:29:06.208:     downscale filter:  Bicubic
20:29:06.208:     fps:               30/1
20:29:06.208:     format:            NV12
20:29:06.209: Audio monitoring device:
20:29:06.209:     name: Default
20:29:06.209:     id: default
20:29:06.209: ---------------------------------
20:29:06.210: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
20:29:06.210: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
20:29:06.211: [AMF Encoder] Unable to load 'amfrt64.dll', error code 126.
20:29:06.215: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
20:29:06.215: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libEGL.dll' not found, loading of module failed
20:29:06.216: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
20:29:06.216: Failed to load 'en-US' text for module: 'obs-browser.dll'
20:29:06.216: [browser_source: 'Version: 1.29.0']
20:29:06.217: NVENC supported
20:29:06.246: Couldn't find VLC installation, VLC video source disabled
20:29:06.249: No blackmagic support
20:29:06.269: ---------------------------------
20:29:06.269:   Loaded Modules:
20:29:06.269:     win-wasapi.dll
20:29:06.269:     win-mf.dll
20:29:06.269:     win-dshow.dll
20:29:06.269:     win-decklink.dll
20:29:06.269:     win-capture.dll
20:29:06.269:     vlc-video.dll
20:29:06.269:     text-freetype2.dll
20:29:06.269:     rtmp-services.dll
20:29:06.269:     obs-x264.dll
20:29:06.270:     obs-vst.dll
20:29:06.270:     obs-transitions.dll
20:29:06.270:     obs-text.dll
20:29:06.270:     obs-qsv11.dll
20:29:06.270:     obs-outputs.dll
20:29:06.270:     obs-filters.dll
20:29:06.270:     obs-ffmpeg.dll
20:29:06.270:     obs-browser.dll
20:29:06.270:     image-source.dll
20:29:06.270:     frontend-tools.dll
20:29:06.270:     enc-amf.dll
20:29:06.270:     coreaudio-encoder.dll
20:29:06.270: ==== Startup complete ===============================================
20:29:06.272: All scene data cleared
20:29:06.272: ------------------------------------------------
20:29:06.291: WASAPI: Device 'CABLE Input (VB-Audio Virtual Cable)' initialized
20:29:06.297: WASAPI: Device 'Microphone (USB Audio Device)' initialized
20:29:06.368: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
20:29:06.649: Switched to scene 'PC - Practice (BSI)'
20:29:06.649: ------------------------------------------------
20:29:06.649: Loaded scenes:
20:29:06.650: - scene 'BSI':
20:29:06.650:     - source: 'BioShockBG' (image_source)
20:29:06.650:     - source: 'Game' (game_capture)
20:29:06.650:     - source: 'LiveSplit (BSI)' (window_capture)
20:29:06.650:         - filter: 'Color Key' (color_key_filter)
20:29:06.650: ------------------------------------------------
20:29:32.042: [game-capture: 'Game'] attempting to hook fullscreen process: BioShockInfinite.exe
20:29:32.044: [game-capture: 'Game'] using helper (direct hook)
20:29:32.045: [game-capture: 'Game'] hook not loaded yet, retrying..
20:29:36.075: [game-capture: 'Game'] attempting to hook fullscreen process: BioShockInfinite.exe
20:29:36.088: [game-capture: 'Game'] d3d11 shared texture capture successful
20:29:36.109: [game-capture: 'Game'] shared texture capture successful
20:29:38.052: ---------------------------------
20:29:38.052: [x264 encoder: 'streaming_h264'] preset: veryfast
20:29:38.053: [x264 encoder: 'streaming_h264'] settings:
20:29:38.053:     rate_control: CBR
20:29:38.053:     bitrate:      2500
20:29:38.053:     buffer size:  2500
20:29:38.053:     crf:          0
20:29:38.053:     fps_num:      30
20:29:38.053:     fps_den:      1
20:29:38.053:     width:        1280
20:29:38.053:     height:       720
20:29:38.053:     keyint:       60
20:29:38.053:     vfr:          off
20:29:38.053:
20:29:38.060: [Media Foundation AAC: 'Track1']: encoder created
20:29:38.060:     bitrate: 160
20:29:38.060:     channels: 2
20:29:38.060:     sample rate: 44100
20:29:38.060:     bits-per-sample: 16
20:29:38.060:
20:29:38.060: [Media Foundation AAC: 'Track2']: encoder created
20:29:38.060:     bitrate: 160
20:29:38.060:     channels: 2
20:29:38.060:     sample rate: 44100
20:29:38.060:     bits-per-sample: 16
20:29:38.060:
20:29:38.063: ==== Recording Start ===============================================
20:29:38.063: [ffmpeg muxer: 'adv_file_output'] Writing file 'C:/Users/Lihp/Videos/2017-05-09 20-29-38.mov'...
20:41:00.655: [game-capture: 'Game'] ----------------- d3d11 capture freed ----------------
20:41:00.778: [game-capture: 'Game'] d3d11 shared texture capture successful
20:41:00.792: [game-capture: 'Game'] shared texture capture successful
20:41:05.190: [ffmpeg muxer: 'adv_file_output'] Output of file 'C:/Users/Lihp/Videos/2017-05-09 20-29-38.mov' stopped
20:41:05.190: Output 'adv_file_output': stopping
20:41:05.190: Output 'adv_file_output': Total encoded frames: 20614
20:41:05.190: Output 'adv_file_output': Total drawn frames: 20614
20:41:05.190: Output 'adv_file_output': Number of lagged frames due to rendering lag/stalls: 12 (0.1%)
20:41:05.190: ==== Recording Stop ================================================



EDIT: here's a longer recording log if it's helpful:

https://pastebin.com/WRcdzHRa

The stuttering doesn't happen when capturing with alternative software, it does seem to be being caused by OBS.
 
Last edited:
Top