FPS improvements?

doinkmcdank

New Member
I'm new to OBS and am currently using it to record gameplay for videos. I recorded a video and when I watched it over, the audio was fine but had AWFUL FPS. It would freeze frame during the game but had decent FPS at menus. In game, I had about 80 fps. If you need any additional information, please let me know and I'll inform you.

Format: mp4
PC: Dell Optiplex 990
LOGS:
16:59:00.048: CPU Name: Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
16:59:00.049: CPU Speed: 3093MHz
16:59:00.049: Physical Cores: 4, Logical Cores: 4
16:59:00.049: Physical Memory: 8148MB Total, 4611MB Free
16:59:00.049: Windows Version: 10.0 Build 17134 (revision: 228; 64-bit)
16:59:00.049: Running as administrator: false
16:59:00.049: Aero is Enabled (Aero is always on for windows 8 and above)
16:59:00.049: Windows 10 Gaming Features:
16:59:00.049: Game Bar: On
16:59:00.049: Game DVR: On
16:59:00.049: Game DVR Background Recording: On
16:59:00.051: Sec. Software Status:
16:59:00.053: Windows Defender Antivirus: enabled (AV)
16:59:00.053: Windows Firewall: enabled (FW)
16:59:00.054: Windows Defender Antivirus: enabled (ASW)
16:59:00.054: Browser Hardware Acceleration: true
16:59:00.054: Portable mode: false
16:59:00.225: OBS 22.0.1 (64-bit, windows)
16:59:00.225: ---------------------------------
16:59:00.226: ---------------------------------
16:59:00.226: audio settings reset:
16:59:00.226: samples per sec: 44100
16:59:00.226: speakers: 2
16:59:00.229: ---------------------------------
16:59:00.229: Initializing D3D11...
16:59:00.229: Available Video Adapters:
16:59:00.230: Adapter 1: NVIDIA GeForce GT 1030
16:59:00.230: Dedicated VRAM: 2078531584
16:59:00.230: Shared VRAM: 4272257024
16:59:00.231: output 1: pos={0, 0}, size={1440, 900}, attached=true
16:59:00.234: Loading up D3D11 on adapter NVIDIA GeForce GT 1030 (0)
16:59:00.312: D3D11 loaded successfully, feature level used: 45056
16:59:01.299: ---------------------------------
16:59:01.299: video settings reset:
16:59:01.299: base resolution: 1440x900
16:59:01.299: output resolution: 960x600
16:59:01.299: downscale filter: Bicubic
16:59:01.299: fps: 60/1
16:59:01.299: format: NV12
16:59:01.299: YUV mode: 601/Partial
16:59:01.302: Audio monitoring device:
16:59:01.302: name: Default
16:59:01.302: id: default
16:59:01.303: ---------------------------------
16:59:01.305: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
16:59:01.306: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
16:59:01.402: [AMF] AMF Test failed due to one or more errors.
16:59:01.402: Failed to initialize module 'enc-amf.dll'
16:59:01.420: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
16:59:01.421: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
16:59:01.421: (127)
16:59:01.421: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
16:59:01.422: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
16:59:01.424: [obs-browser]: Version 2.1.2
16:59:01.428: LoadLibrary failed for 'nvEncodeAPI64.dll': The specified module could not be found.
16:59:01.428: (126)
16:59:01.485: Couldn't find VLC installation, VLC video source disabled
16:59:01.492: No blackmagic support
16:59:01.498: ---------------------------------
16:59:01.498: Loaded Modules:
16:59:01.498: win-wasapi.dll
16:59:01.498: win-mf.dll
16:59:01.498: win-dshow.dll
16:59:01.498: win-decklink.dll
16:59:01.498: win-capture.dll
16:59:01.498: vlc-video.dll
16:59:01.498: text-freetype2.dll
16:59:01.498: rtmp-services.dll
16:59:01.498: obs-x264.dll
16:59:01.498: obs-vst.dll
16:59:01.498: obs-transitions.dll
16:59:01.498: obs-text.dll
16:59:01.498: obs-qsv11.dll
16:59:01.498: obs-outputs.dll
16:59:01.498: obs-filters.dll
16:59:01.498: obs-ffmpeg.dll
16:59:01.498: obs-browser.dll
16:59:01.498: image-source.dll
16:59:01.498: frontend-tools.dll
16:59:01.498: enc-amf.dll
16:59:01.498: coreaudio-encoder.dll
16:59:01.498: ---------------------------------
16:59:01.498: ==== Startup complete ===============================================
16:59:01.501: All scene data cleared
16:59:01.501: ------------------------------------------------
16:59:01.556: WASAPI: Device 'Speakers (High Definition Audio Device)' initialized
16:59:01.584: WASAPI: Device 'Microphone (USB Audio Device)' initialized
16:59:01.634: adding 46 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
16:59:02.292: Switched to scene 'Scene'
16:59:02.295: [game-capture: 'Game Capture'] attempting to hook fullscreen process: explorer.exe
16:59:02.295: [game-capture: 'Game Capture'] cannot capture explorer.exe due to being blacklisted
16:59:02.296: ------------------------------------------------
16:59:02.296: Loaded scenes:
16:59:02.296: - scene 'Scene':
16:59:02.296: - source: 'Display Capture' (monitor_capture)
16:59:02.296: - source: 'Game Capture' (game_capture)
16:59:02.296: ------------------------------------------------
16:59:02.377: CalculateFileHash: Failed to open file 'C:\Users\elisa\AppData\Roaming\obs-studio\updates\whatsnew.json':
16:59:07.976: Switched to Preview/Program mode
16:59:07.976: ------------------------------------------------
16:59:15.739: Switched to scene 'Scene'
16:59:15.741: Switched to regular Preview mode
16:59:15.741: ------------------------------------------------
16:59:17.398: ---------------------------------
16:59:17.398: [x264 encoder: 'simple_h264_stream'] preset: veryfast
16:59:17.398: [x264 encoder: 'simple_h264_stream'] settings:
16:59:17.398: rate_control: CBR
16:59:17.398: bitrate: 2167
16:59:17.398: buffer size: 2167
16:59:17.398: crf: 0
16:59:17.398: fps_num: 60
16:59:17.398: fps_den: 1
16:59:17.398: width: 960
16:59:17.398: height: 600
16:59:17.398: keyint: 120
16:59:17.398:
16:59:17.398: [x264 encoder: 'simple_h264_stream'] custom settings: scenecut=0
16:59:17.406: ---------------------------------
16:59:17.407: [FFmpeg aac encoder: 'simple_aac'] bitrate: 160, channels: 2, channel_layout: 3
16:59:17.407:
16:59:17.437: ==== Recording Start ===============================================
16:59:17.437: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:/Users/elisa/Videos/2018-08-27 16-59-17.mp4'...
16:59:20.434: adding 23 milliseconds of audio buffering, total audio buffering is now 69 milliseconds
16:59:25.469: [game-capture: 'Game Capture'] attempting to hook fullscreen process: Paladins.exe
16:59:25.474: [game-capture: 'Game Capture'] using helper (compatibility hook)
16:59:25.505: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
16:59:28.488: [game-capture: 'Game Capture'] attempting to hook fullscreen process: Paladins.exe
16:59:28.690: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
16:59:28.691: [game-capture: 'Game Capture'] shared texture capture successful
17:01:34.303: adding 23 milliseconds of audio buffering, total audio buffering is now 92 milliseconds
17:03:11.661: adding 23 milliseconds of audio buffering, total audio buffering is now 116 milliseconds
17:13:45.510: adding 23 milliseconds of audio buffering, total audio buffering is now 139 milliseconds
17:18:21.970: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
17:19:08.524: Settings changed (general)
17:19:08.524: ------------------------------------------------
17:19:46.549: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:/Users/elisa/Videos/2018-08-27 16-59-17.mp4' stopped
17:19:46.549: Output 'simple_file_output': stopping
17:19:46.549: Output 'simple_file_output': Total frames output: 68783
17:19:46.549: Output 'simple_file_output': Total drawn frames: 71064 (73746 attempted)
17:19:46.549: Output 'simple_file_output': Number of lagged frames due to rendering lag/stalls: 2682 (3.6%)
17:19:46.550: ==== Recording Stop ================================================
17:19:46.552: Video stopped, number of skipped frames due to encoding lag: 63272/73743 (85.8%)
17:19:49.706: [game-capture: 'Game Capture'] d3d11 shared texture capture successful
17:19:49.726: [game-capture: 'Game Capture'] shared texture capture successful
17:19:55.402: [game-capture: 'Game Capture'] capture window no longer exists, terminating capture
17:19:55.404: [game-capture: 'Game Capture'] capture stopped
17:20:00.691: ==== Shutting down ==================================================
17:20:00.738: Switched to scene '(null)'
17:20:00.740: WASAPI: Device 'Speakers (High Definition Audio Device)' Terminated
17:20:00.746: WASAPI: Device 'Microphone (USB Audio Device)' Terminated
17:20:00.875: All scene data cleared
17:20:00.875: ------------------------------------------------
17:20:00.950: Freeing OBS context data
17:20:00.973: [Scripting] Total detached callbacks: 0
17:20:01.020: == Profiler Results =============================
17:20:01.020: run_program_init: 2699.39 ms
17:20:01.020: ┣OBSApp::AppInit: 25.468 ms
17:20:01.020: ┃ ┗OBSApp::InitLocale: 1.674 ms
17:20:01.020: ┗OBSApp::OBSInit: 2652.75 ms
17:20:01.020: ┣obs_startup: 6.361 ms
17:20:01.020: ┗OBSBasic::OBSInit: 2151 ms
17:20:01.020: ┣OBSBasic::InitBasicConfig: 0.742 ms
17:20:01.020: ┣OBSBasic::ResetAudio: 0.27 ms
17:20:01.020: ┣OBSBasic::ResetVideo: 1075.6 ms
17:20:01.020: ┣OBSBasic::InitOBSCallbacks: 0.01 ms
17:20:01.020: ┣OBSBasic::InitHotkeys: 0.077 ms
17:20:01.020: ┣obs_load_all_modules: 194.964 ms
17:20:01.020: ┃ ┣obs_init_module(coreaudio-encoder.dll): 0.746 ms
17:20:01.020: ┃ ┣obs_init_module(enc-amf.dll): 94.182 ms
17:20:01.020: ┃ ┣obs_init_module(frontend-tools.dll): 5.782 ms
17:20:01.020: ┃ ┣obs_init_module(image-source.dll): 0.005 ms
17:20:01.020: ┃ ┣obs_init_module(obs-browser.dll): 0.222 ms
17:20:01.020: ┃ ┣obs_init_module(obs-ffmpeg.dll): 0.788 ms
17:20:01.020: ┃ ┃ ┗nvenc_check: 0.762 ms
17:20:01.020: ┃ ┣obs_init_module(obs-filters.dll): 0.022 ms
17:20:01.020: ┃ ┣obs_init_module(obs-outputs.dll): 0.009 ms
17:20:01.020: ┃ ┣obs_init_module(obs-qsv11.dll): 45.129 ms
17:20:01.020: ┃ ┣obs_init_module(obs-text.dll): 0.344 ms
17:20:01.020: ┃ ┣obs_init_module(obs-transitions.dll): 0.006 ms
17:20:01.020: ┃ ┣obs_init_module(obs-vst.dll): 0.002 ms
17:20:01.020: ┃ ┣obs_init_module(obs-x264.dll): 0.002 ms
17:20:01.020: ┃ ┣obs_init_module(rtmp-services.dll): 1.311 ms
17:20:01.020: ┃ ┣obs_init_module(text-freetype2.dll): 0.065 ms
17:20:01.020: ┃ ┣obs_init_module(vlc-video.dll): 0.059 ms
17:20:01.020: ┃ ┣obs_init_module(win-capture.dll): 0.107 ms
17:20:01.020: ┃ ┣obs_init_module(win-decklink.dll): 4.554 ms
17:20:01.020: ┃ ┣obs_init_module(win-dshow.dll): 2.36 ms
17:20:01.020: ┃ ┣obs_init_module(win-mf.dll): 0 ms
17:20:01.020: ┃ ┣obs_init_module(win-wasapi.dll): 0.008 ms
17:20:01.020: ┃ ┗reset_win32_symbol_paths: 0.089 ms
17:20:01.020: ┣OBSBasic::ResetOutputs: 0.287 ms
17:20:01.020: ┣OBSBasic::CreateHotkeys: 0.236 ms
17:20:01.020: ┣OBSBasic::InitService: 1.581 ms
17:20:01.020: ┣OBSBasic::InitPrimitives: 0.358 ms
17:20:01.020: ┗OBSBasic::Load: 801.952 ms
17:20:01.020: obs_hotkey_thread(25 ms): min=0.006 ms, median=0.016 ms, max=191.177 ms, 99th percentile=6.871 ms, 99.8212% below 25 ms
17:20:01.020: audio_thread(Audio): min=0 ms, median=1.378 ms, max=114.458 ms, 99th percentile=19.594 ms
17:20:01.020: ┗receive_audio: min=0.005 ms, median=0.848 ms, max=100.03 ms, 99th percentile=15.165 ms, 1.19238 calls per parent call
17:20:01.020: ┣buffer_audio: min=0 ms, median=0.002 ms, max=19.149 ms, 99th percentile=0.014 ms
17:20:01.020: ┗do_encode: min=0.043 ms, median=0.835 ms, max=100.022 ms, 99th percentile=15.073 ms
17:20:01.021: ┗encode(simple_aac): min=0.039 ms, median=0.621 ms, max=48.826 ms, 99th percentile=12.923 ms
17:20:01.021: obs_graphics_thread(16.6667 ms): min=0.091 ms, median=2.123 ms, max=706.506 ms, 99th percentile=22.185 ms, 97.4071% below 16.667 ms
17:20:01.021: ┣tick_sources: min=0.002 ms, median=0.382 ms, max=706.394 ms, 99th percentile=12.904 ms
17:20:01.021: ┣output_frame: min=0.084 ms, median=0.332 ms, max=247.346 ms, 99th percentile=12.512 ms
17:20:01.021: ┃ ┣gs_context(video->graphics): min=0.083 ms, median=0.278 ms, max=247.34 ms, 99th percentile=12.331 ms
17:20:01.021: ┃ ┃ ┣render_video: min=0.007 ms, median=0.082 ms, max=87.151 ms, 99th percentile=6.019 ms
17:20:01.021: ┃ ┃ ┃ ┣render_main_texture: min=0.004 ms, median=0.049 ms, max=86.964 ms, 99th percentile=4.33 ms
17:20:01.021: ┃ ┃ ┃ ┣render_output_texture: min=0.001 ms, median=0.012 ms, max=41.126 ms, 99th percentile=1.031 ms
17:20:01.021: ┃ ┃ ┃ ┣render_convert_texture: min=0.001 ms, median=0.011 ms, max=16.273 ms, 99th percentile=0.614 ms
17:20:01.021: ┃ ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.002 ms, max=21.616 ms, 99th percentile=0.412 ms
17:20:01.021: ┃ ┃ ┣gs_flush: min=0.028 ms, median=0.148 ms, max=77.537 ms, 99th percentile=6.908 ms
17:20:01.021: ┃ ┃ ┗download_frame: min=0 ms, median=0.002 ms, max=245.411 ms, 99th percentile=8.867 ms
17:20:01.021: ┃ ┗output_video_data: min=0 ms, median=0.001 ms, max=27.935 ms, 99th percentile=1.58 ms
17:20:01.021: ┗render_displays: min=0 ms, median=0.549 ms, max=80.753 ms, 99th percentile=11.129 ms
17:20:01.021: video_thread(video): min=0.464 ms, median=0.651 ms, max=69851.2 ms, 99th percentile=624.109 ms
17:20:01.021: ┗receive_video: min=0.453 ms, median=2.009 ms, max=953.103 ms, 99th percentile=137.417 ms, 7.0825 calls per parent call
17:20:01.021: ┗do_encode: min=0.452 ms, median=2.006 ms, max=953.101 ms, 99th percentile=137.417 ms
17:20:01.021: ┗encode(simple_h264_stream): min=0.438 ms, median=1.642 ms, max=952.783 ms, 99th percentile=137.345 ms
17:20:01.021: =================================================
17:20:01.021: == Profiler Time Between Calls ==================
17:20:01.021: obs_hotkey_thread(25 ms): min=24.057 ms, median=26.584 ms, max=418.343 ms, 8.01835% within ±2% of 25 ms (0.110549% lower, 91.8711% higher)
17:20:01.022: obs_graphics_thread(16.6667 ms): min=0.381 ms, median=16.666 ms, max=706.512 ms, 26.1664% within ±2% of 16.667 ms (37.4562% lower, 36.3774% higher)
17:20:01.022: =================================================
17:20:02.265: Number of memory leaks: 0
 

koala

Active Member
Your system is overloaded with running the game and OBS encoding the video at the same time. You're losing 85% of all frames due to encoding lag, that means your system is not able to encode frames at the same rate they are produced.
- limit your game to 60 fps by turning on vsync or enabling some frame limiter
- set the fps in OBS to 30 instead of 60
- lower the output resolution in OBS

You can as well give the autoconfiguration wizard a try. Click Tools->Auto Configuration Wizard.
 

BK-Morpheus

Active Member
Additionally to what koala said, I would recommend to use game_capture if possible (at least stop using game_capture and monitor_capture in the same scene) and disable Windows Game DVR.
The main problem still is the CPU overload (and slightly overloaded GPU as well).
 
Top