Assuming you're on a laptop:
OBS Studio - Free and open source software for live streaming and screen recording - obsproject/obs-studio
obsproject.com
Chances are good you're running on the Integrated GPU, which allows display capture but disables game and window capture.
Otherwise, post a logfile of a live recording session and we can take a look.
Nope, this is running on a PC. So, no dual graphics card.
So this is my logfile
02:04:42.329: CoInitializeEx succeeded: 0x00000001
02:04:42.329: CPU Name: AMD Ryzen 3 2200G with Radeon Vega Graphics
02:04:42.329: CPU Speed: 3493MHz
02:04:42.329: Physical Cores: 4, Logical Cores: 4
02:04:42.329: Physical Memory: 8122MB Total, 2330MB Free
02:04:42.329: Windows Version: 10.0 Build 18362 (release: 1903; revision: 720; 64-bit)
02:04:42.329: Running as administrator: false
02:04:42.329: Aero is Enabled (Aero is always on for windows 8 and above)
02:04:42.329: Windows 10 Gaming Features:
02:04:42.329: Game DVR: On
02:04:42.335: Sec. Software Status:
02:04:42.337: AVG Antivirus: enabled (AV)
02:04:42.337: Windows Defender Antivirus: disabled (AV)
02:04:42.338: Windows Firewall: enabled (FW)
02:04:42.340: Current Date/Time: 2020-03-26, 02:04:42
02:04:42.340: Browser Hardware Acceleration: true
02:04:42.340: Portable mode: false
02:04:43.495: OBS 25.0.1 (64-bit, windows)
02:04:43.495: ---------------------------------
02:04:43.537: ---------------------------------
02:04:43.537: audio settings reset:
02:04:43.537: samples per sec: 44100
02:04:43.537: speakers: 2
02:04:43.540: ---------------------------------
02:04:43.540: Initializing D3D11...
02:04:43.540: Available Video Adapters:
02:04:43.545: Adapter 0: NVIDIA GeForce GTX 1050 Ti
02:04:43.545: Dedicated VRAM: 4213178368
02:04:43.545: Shared VRAM: 4258275328
02:04:43.546: Driver Version: 26.21.14.3200
02:04:43.546: output 0: pos={0, 0}, size={1920, 1080}, attached=true, refresh=60, name=Cintiq 13HDT
02:04:43.551: Loading up D3D11 on adapter NVIDIA GeForce GTX 1050 Ti (0)
02:04:43.661: D3D11 loaded successfully, feature level used: b000
02:04:43.661: DXGI increase maximum frame latency success
02:04:43.661: D3D11 GPU priority setup failed (not admin?)
02:04:44.317: ---------------------------------
02:04:44.317: video settings reset:
02:04:44.317: base resolution: 1280x768
02:04:44.317: output resolution: 1024x614
02:04:44.317: downscale filter: Bicubic
02:04:44.317: fps: 30/1
02:04:44.317: format: NV12
02:04:44.317: YUV mode: 601/Partial
02:04:44.318: NV12 texture support enabled
02:04:44.321: Audio monitoring device:
02:04:44.321: name: Default
02:04:44.321: id: default
02:04:44.322: ---------------------------------
02:04:44.329: [CoreAudio encoder]: CoreAudio AAC encoder not installed on the system or couldn't be loaded
02:04:44.332: Failed to load 'en-US' text for module: 'decklink-ouput-ui.dll'
02:04:44.552: [AMF] Unable to load 'amfrt64.dll', error code 126.
02:04:44.558: [AMF] AMF Test failed due to one or more errors.
02:04:44.558: Failed to initialize module 'enc-amf.dll'
02:04:44.641: [obs-browser]: Version 2.8.6
02:04:44.652: NVENC supported
02:04:44.741: Couldn't find VLC installation, VLC video source disabled
02:04:44.751: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
02:04:44.752: No blackmagic support
02:04:44.764: ---------------------------------
02:04:44.764: Loaded Modules:
02:04:44.764: win-wasapi.dll
02:04:44.764: win-mf.dll
02:04:44.764: win-dshow.dll
02:04:44.764: win-decklink.dll
02:04:44.764: win-capture.dll
02:04:44.764: vlc-video.dll
02:04:44.764: text-freetype2.dll
02:04:44.764: rtmp-services.dll
02:04:44.764: obs-x264.dll
02:04:44.764: obs-vst.dll
02:04:44.764: obs-transitions.dll
02:04:44.764: obs-text.dll
02:04:44.764: obs-qsv11.dll
02:04:44.764: obs-outputs.dll
02:04:44.764: obs-filters.dll
02:04:44.764: obs-ffmpeg.dll
02:04:44.764: obs-browser.dll
02:04:44.764: image-source.dll
02:04:44.764: frontend-tools.dll
02:04:44.764: enc-amf.dll
02:04:44.764: decklink-ouput-ui.dll
02:04:44.764: coreaudio-encoder.dll
02:04:44.764: ---------------------------------
02:04:44.764: ==== Startup complete ===============================================
02:04:44.765: Service '' not found
02:04:44.774: All scene data cleared
02:04:44.774: ------------------------------------------------
02:04:44.830: WASAPI: Device 'Headphones (High Definition Audio Device)' [48000 Hz] initialized
02:04:44.838: [WASAPISource::WASAPISource] Device 'default' not found. Waiting for device
02:04:45.931: Switched to scene 'Scene'
02:04:45.931: ------------------------------------------------
02:04:45.931: Loaded scenes:
02:04:45.931: - scene 'Scene':
02:04:45.931: - source: 'Game Capture' (game_capture)
02:04:45.931: ------------------------------------------------
02:04:45.935: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:04:45.956: [game-capture: 'Game Capture'] capture stopped
02:04:47.958: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:04:47.990: [game-capture: 'Game Capture'] capture stopped
02:04:49.991: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:04:50.023: [game-capture: 'Game Capture'] capture stopped
02:04:52.024: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:04:52.056: [game-capture: 'Game Capture'] capture stopped
02:04:54.058: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:04:54.090: [game-capture: 'Game Capture'] capture stopped
02:04:56.091: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:04:56.123: [game-capture: 'Game Capture'] capture stopped
02:04:57.725: [jim-nvenc: 'simple_h264_recording'] settings:
02:04:57.725: rate_control: CQP
02:04:57.725: bitrate: 0
02:04:57.725: cqp: 19
02:04:57.725: keyint: 250
02:04:57.725: preset: hq
02:04:57.725: profile: high
02:04:57.725: width: 1024
02:04:57.725: height: 614
02:04:57.725: 2-pass: false
02:04:57.725: b-frames: 2
02:04:57.725: lookahead: false
02:04:57.725: psycho_aq: true
02:04:57.725:
02:04:57.750: ---------------------------------
02:04:57.751: [FFmpeg aac encoder: 'simple_aac_recording'] bitrate: 192, channels: 2, channel_layout: 3
02:04:57.751:
02:04:57.798: ==== Recording Start ===============================================
02:04:57.798: [ffmpeg muxer: 'simple_file_output'] Writing file 'C:/Users/Haslin Umar Al Aziz/Videos/2020-03-26 02-04-57.mkv'...
02:04:58.125: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:04:58.156: [game-capture: 'Game Capture'] capture stopped
02:05:00.158: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:05:00.190: [game-capture: 'Game Capture'] capture stopped
02:05:02.189: [game-capture: 'Game Capture'] attempting to hook process: PathOfExile_x64Steam.exe
02:05:05.443: [game-capture: 'Game Capture'] d3d11 memory capture successful
02:05:06.189: [game-capture: 'Game Capture'] ----------------- d3d11 capture freed ----------------
02:05:08.862: [ffmpeg muxer: 'simple_file_output'] Output of file 'C:/Users/Haslin Umar Al Aziz/Videos/2020-03-26 02-04-57.mkv' stopped
02:05:08.862: Output 'simple_file_output': stopping
02:05:08.862: Output 'simple_file_output': Total frames output: 323
02:05:08.862: Output 'simple_file_output': Total drawn frames: 332
02:05:08.864: ==== Recording Stop ================================================