Question / Help Minecraft FPS drops, output smooth, very few encoding overload

No matter i record or stream, no matter what how large the bit rate is (tested between 1000 - 10000), my Minecraft fps still drops like from averagely 50 to averagely 25. The recorded video and stream are smooth. Is there a reason for that FPS drop? How would i fix it? Also, i tried using other software with the same settings and it did not lag my Minecraft at all. My bit rate is currently 5000, using QuickSync H.264 encoder. Here is a log for a streaming test.

15:00:59.849: CPU Name: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
15:00:59.849: CPU Speed: 1992MHz
15:00:59.850: Physical Cores: 4, Logical Cores: 8
15:00:59.850: Physical Memory: 8074MB Total, 2052MB Free
15:00:59.850: Windows Version: 10.0 Build 17134 (revision: 165; 64-bit)
15:00:59.850: Running as administrator: false
15:00:59.850: Aero is Enabled (Aero is always on for windows 8 and above)
15:00:59.850: Windows 10 Gaming Features:
15:00:59.850: Game Bar: On
15:00:59.850: Game DVR: On
15:00:59.850: Game DVR Background Recording: Off
15:00:59.854: Sec. Software Status:
15:00:59.856: Windows Defender Antivirus: disabled (AV)
15:00:59.856: ESET NOD32 Antivirus: enabled (AV)
15:00:59.857: Windows Firewall: enabled (FW)
15:00:59.857: ESET NOD32 Antivirus: enabled (ASW)
15:00:59.857: Windows Defender Antivirus: disabled (ASW)
15:00:59.858: Portable mode: false
15:00:59.999: OBS 21.1.2 (64bit, windows)
15:00:59.999: ---------------------------------
15:00:59.999: ---------------------------------
15:00:59.999: audio settings reset:
15:00:59.999: samples per sec: 44100
15:00:59.999: speakers: 2
15:01:00.003: ---------------------------------
15:01:00.003: Initializing D3D11...
15:01:00.004: Available Video Adapters:
15:01:00.011: Adapter 1: Intel(R) UHD Graphics 620
15:01:00.011: Dedicated VRAM: 134217728
15:01:00.011: Shared VRAM: 4233531392
15:01:00.011: output 1: pos={0, 0}, size={1920, 1080}, attached=true
15:01:00.011: Adapter 2: NVIDIA GeForce 940MX
15:01:00.011: Dedicated VRAM: 2107703296
15:01:00.011: Shared VRAM: 4233531392
15:01:00.021: Loading up D3D11 on adapter Intel(R) UHD Graphics 620 (0)
15:01:00.034: D3D11 loaded successfully, feature level used: 45056
15:01:01.216: ---------------------------------
15:01:01.216: video settings reset:
15:01:01.216: base resolution: 1920x1080
15:01:01.216: output resolution: 1920x1080
15:01:01.216: downscale filter: Bicubic
15:01:01.216: fps: 60/1
15:01:01.216: format: NV12
15:01:01.216: YUV mode: 601/Partial
15:01:01.217: Audio monitoring device:
15:01:01.217: name: Default
15:01:01.217: id: default
15:01:01.218: ---------------------------------
15:01:01.224: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/chrome_elf.dll' not found, loading of module failed
15:01:01.250: [CoreAudio encoder]: Adding CoreAudio AAC encoder
15:01:01.309: [AMF] AMF Test failed due to one or more errors.
15:01:01.309: Failed to initialize module 'enc-amf.dll'
15:01:01.338: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libcef.dll' not found, loading of module failed
15:01:01.339: LoadLibrary failed for '../../obs-plugins/64bit/libEGL.dll': The specified procedure could not be found.
15:01:01.339: (127)
15:01:01.339: Module '../../obs-plugins/64bit/libEGL.dll' not loaded
15:01:01.341: Required module function 'obs_module_load' in module '../../obs-plugins/64bit/libGLESv2.dll' not found, loading of module failed
15:01:01.344: [browser_source: 'Version: 1.31.0']
15:01:01.373: NVENC supported
15:01:01.528: Couldn't find VLC installation, VLC video source disabled
15:01:01.550: No blackmagic support
15:01:01.579: ---------------------------------
15:01:01.579: Loaded Modules:
15:01:01.579: win-wasapi.dll
15:01:01.579: win-mf.dll
15:01:01.579: win-dshow.dll
15:01:01.579: win-decklink.dll
15:01:01.579: win-capture.dll
15:01:01.579: vlc-video.dll
15:01:01.579: text-freetype2.dll
15:01:01.579: rtmp-services.dll
15:01:01.579: obs-x264.dll
15:01:01.579: obs-vst.dll
15:01:01.579: obs-transitions.dll
15:01:01.579: obs-text.dll
15:01:01.579: obs-qsv11.dll
15:01:01.579: obs-outputs.dll
15:01:01.579: obs-filters.dll
15:01:01.579: obs-ffmpeg.dll
15:01:01.579: obs-browser.dll
15:01:01.579: image-source.dll
15:01:01.579: frontend-tools.dll
15:01:01.579: enc-amf.dll
15:01:01.579: coreaudio-encoder.dll
15:01:01.579: ---------------------------------
15:01:01.579: ==== Startup complete ===============================================
15:01:01.613: All scene data cleared
15:01:01.613: ------------------------------------------------
15:01:01.800: WASAPI: Device 'Speakers (Realtek High Definition Audio)' initialized
15:01:01.865: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
15:01:01.880: WASAPI: Device 'Microphone (Realtek High Definition Audio)' initialized
15:01:01.911: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
15:01:02.421: Switched to scene 'Scene'
15:01:02.423: [game-capture: 'Game Capture'] attempting to hook process: javaw.exe
15:01:02.428: [game-capture: 'Game Capture'] using helper (compatibility hook)
15:01:02.504: [game-capture: 'Game Capture'] hook not loaded yet, retrying..
15:01:02.505: ------------------------------------------------
15:01:02.505: Loaded scenes:
15:01:02.505: - scene 'Scene':
15:01:02.505: - source: 'Game Capture' (game_capture)
15:01:02.505: ------------------------------------------------
15:01:04.434: [game-capture: 'Game Capture'] attempting to hook process: javaw.exe
15:01:04.482: [game-capture: 'Game Capture'] gl shared texture capture successful
15:01:04.500: [game-capture: 'Game Capture'] shared texture capture successful
15:02:32.818: Settings changed (outputs)
15:02:32.818: ------------------------------------------------
15:02:35.564: [game-capture: 'Game Capture'] ------------------ gl capture freed ------------------
15:02:35.586: [game-capture: 'Game Capture'] gl shared texture capture successful
15:02:35.601: [game-capture: 'Game Capture'] shared texture capture successful
15:03:38.204: [game-capture: 'Game Capture'] ------------------ gl capture freed ------------------
15:03:38.223: [game-capture: 'Game Capture'] gl shared texture capture successful
15:03:38.234: [game-capture: 'Game Capture'] shared texture capture successful
15:06:27.434: [game-capture: 'Game Capture'] capture stopped
15:06:27.435: [game-capture: 'Game Capture'] attempting to hook process: javaw.exe
15:06:27.476: [game-capture: 'Game Capture'] gl shared texture capture successful
15:06:27.484: [game-capture: 'Game Capture'] shared texture capture successful
15:06:28.634: [game-capture: 'Game Capture'] capture stopped
15:06:29.452: [game-capture: 'Game Capture'] attempting to hook process: javaw.exe
15:06:29.468: [game-capture: 'Game Capture'] shared texture capture successful
15:06:35.868: [game-capture: 'Game Capture'] capture stopped
15:06:35.870: [game-capture: 'Game Capture'] attempting to hook process: javaw.exe
15:06:35.911: [game-capture: 'Game Capture'] gl shared texture capture successful
15:06:35.917: [game-capture: 'Game Capture'] shared texture capture successful
15:06:42.785: [game-capture: 'Game Capture'] capture stopped
15:06:42.786: [game-capture: 'Game Capture'] attempting to hook process: javaw.exe
15:06:42.816: [game-capture: 'Game Capture'] gl shared texture capture successful
15:06:42.818: [game-capture: 'Game Capture'] shared texture capture successful
15:06:44.352: [game-capture: 'Game Capture'] capture stopped
15:06:46.818: [game-capture: 'Game Capture'] attempting to hook process: javaw.exe
15:06:46.834: [game-capture: 'Game Capture'] shared texture capture successful
15:06:54.999: [qsv encoder: 'streaming_h264'] settings:
15:06:54.999: rate_control: CBR
15:06:54.999: target_bitrate: 5000
15:06:54.999: fps_num: 60
15:06:54.999: fps_den: 1
15:06:54.999: width: 1920
15:06:54.999: height: 1080
15:06:54.999: [qsv encoder: 'streaming_h264'] debug info:
15:06:55.049: impl: D3D11
15:06:55.049: surf: D3D11
15:06:55.330: m_nSurfNum: 16
15:06:55.333: m_nTaskPool: 4
15:06:55.333: major: 1
15:06:55.333: minor: 25
15:06:55.340: [CoreAudio AAC: 'Track1']: settings:
15:06:55.340: mode: AAC
15:06:55.340: bitrate: 160
15:06:55.340: sample rate: 44100
15:06:55.340: cbr: on
15:06:55.340: output buffer: 1536
15:06:55.341: [rtmp stream: 'adv_stream'] Connecting to RTMP URL rtmp://a.rtmp.youtube.com/live2...
15:06:55.354: [rtmp stream: 'adv_stream'] Interface: Qualcomm Atheros QCA9377 Wireless Network Adapter (802.11, 108 mbps)
15:06:55.741: [rtmp stream: 'adv_stream'] Connection to rtmp://a.rtmp.youtube.com/live2 successful
15:06:55.756: ==== Streaming Start ===============================================
15:07:37.608: adding 46 milliseconds of audio buffering, total audio buffering is now 92 milliseconds
15:10:23.588: [rtmp stream: 'adv_stream'] User stopped the stream
15:10:23.589: Output 'adv_stream': stopping
15:10:23.589: Output 'adv_stream': Total frames output: 12436
15:10:23.589: Output 'adv_stream': Total drawn frames: 12429 (12495 attempted)
15:10:23.589: Output 'adv_stream': Number of lagged frames due to rendering lag/stalls: 66 (0.5%)
15:10:23.591: Video stopped, number of skipped frames due to encoding lag: 143/12471 (1.1%)
15:10:23.594: ==== Streaming Stop ================================================
 
Set OBS and java to run on the high performance GPU instead of the integrated.
Minecraftlauncher.exe was running with nvidia gpu already, but not for OBS. i set OBS to use the nvidia gpu but then i get black screen. i use quicksync encoder. I have read this thread but i dont really understand what i should do to resolve black screen issue if i have two graphics adapter and i use quicksync encoder. Please help.
 
You need to set JAVA to run on the high performance gpu, not the launcher.
Wow thx a lot that greatly increases my fps in Minecraft. I now have both javaw.exe (the one for minecraft) and obs64.exe using nvidia gpu. But now if i try to start recording, minecraft crashes and i receive the following log.

EDIT: i dont receive black screen anymore. But minecraft crashes.
 
Last edited:

Harold

Active Member
Make sure your nvidia drivers are up to date, OBS is running as administrator, and no other overlays are trying to hook.
 
Top