You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Recording forces integrated GPU causing severe performance issues on MacBook Pro 2019 #1756
While recording, the application forces the use of the integrated GPU instead of the dedicated GPU.
This results in noticeable performance issues on my system, including lag and reduced responsiveness, making the app difficult to use during recording. I expected the application to utilize the dedicated GPU (AMD Radeon Pro 5300M) for better performance, or at least provide an option to select the GPU manually.
Reproduction
Open the Cap application
Start a screen recording
Monitor GPU usage using Activity Monitor
Observe that the app switches to the integrated GPU
This is related to #586 and #1673 which also report high CPU usage and performance issues during recording. A contributor noted in #586 that Cap uses VTEncoder via AVFoundation for hardware-accelerated encoding, but the hardware acceleration may not be engaging properly in some configurations.
Potential root cause:
The Info.plist at apps/desktop/src-tauri/Info.plist does not set NSSupportsAutomaticGraphicsSwitching. On dual-GPU MacBooks, this key controls whether macOS can switch between integrated and discrete GPUs. Without explicit configuration, macOS may default to the integrated GPU for power efficiency even when the app would benefit from the discrete GPU.
Setting this to false tells macOS to prefer the discrete GPU. However, this would increase power consumption and heat for all users, including those on single-GPU Macs where it has no effect.
Relevant code areas:
wgpu adapter selection: crates/rendering/src/lib.rs - already requests PowerPreference::HighPerformance when calling request_adapter, which should signal to use the discrete GPU
GPU converters: Multiple modules in crates/gpu-converters/src/ also use PowerPreference::HighPerformance
The code already requests the high-performance GPU at the wgpu/Metal layer, but the OS-level plist setting may be overriding that preference for the application as a whole.
Diagnostic suggestion:
Logs from ~/Library/Logs/so.cap.desktop/ would help confirm whether the hardware encoder is being used and if there are any fallback warnings. The app's "Upload Logs" feature can capture these automatically.
Classic ScreenCaptureKit + VTCompressionSession dual-GPU cross-surface copy. NSSupportsAutomaticGraphicsSwitching=false pins to dGPU, but you still pay the PCIe cost every frame if SCStream's IOSurface lives on a different GPU than the encoder. Real fix: match SCStreamConfiguration pixelFormat and colorSpace to what VT expects without a conversion (BGRA + Rec709), plus set kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder. On a 2019 MBP with Radeon Pro, forcing iGPU actually ran smoother than dGPU because the integrated H.265 ASIC handles capture fine and you skip the cross-surface copy entirely.
AasishDairelSahayaGrinspan commented on Apr 24, 2026
Classic ScreenCaptureKit + VTCompressionSession dual-GPU cross-surface copy. NSSupportsAutomaticGraphicsSwitching=false pins to dGPU, but you still pay the PCIe cost every frame if SCStream's IOSurface lives on a different GPU than the encoder. Real fix: match SCStreamConfiguration pixelFormat and colorSpace to what VT expects without a conversion (BGRA + Rec709), plus set kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder. On a 2019 MBP with Radeon Pro, forcing iGPU actually ran smoother than dGPU because the integrated H.265 ASIC handles capture fine and you skip the cross-surface copy entirely.
Playback and scrubbing inside Cap is broken/laggy on MacBook Pro 2019 (iGPU). The recorded file plays perfectly fine in other apps, so the file is fine. The issue is Cap's own preview/playback renderer it appears to be using the iGPU for playback rendering, which causes lag and makes scrubbing unusable. The fix needs to be on the playback side, not just the recording pipeline specifically using AVPlayerLayer or AVSampleBufferDisplayLayer with proper GPU selection instead of rendering video through WebView.
This doesn't have enough detail, no logs, to act on as filed. Please re-file with your current version, GPU details, and logs if recording is still forcing the integrated GPU on your 2019 MacBook Pro.
Activity
linear commentedon Apr 23, 2026
CAP-690
tembo commentedon Apr 23, 2026
This is related to #586 and #1673 which also report high CPU usage and performance issues during recording. A contributor noted in #586 that Cap uses
VTEncodervia AVFoundation for hardware-accelerated encoding, but the hardware acceleration may not be engaging properly in some configurations.Potential root cause:
The
Info.plistatapps/desktop/src-tauri/Info.plistdoes not setNSSupportsAutomaticGraphicsSwitching. On dual-GPU MacBooks, this key controls whether macOS can switch between integrated and discrete GPUs. Without explicit configuration, macOS may default to the integrated GPU for power efficiency even when the app would benefit from the discrete GPU.Adding this to the plist could help:
Setting this to
falsetells macOS to prefer the discrete GPU. However, this would increase power consumption and heat for all users, including those on single-GPU Macs where it has no effect.Relevant code areas:
crates/rendering/src/lib.rs- already requestsPowerPreference::HighPerformancewhen callingrequest_adapter, which should signal to use the discrete GPUcrates/gpu-converters/src/also usePowerPreference::HighPerformancecrates/enc-avfoundation/src/mp4.rs- handles hardware-accelerated encodingThe code already requests the high-performance GPU at the wgpu/Metal layer, but the OS-level plist setting may be overriding that preference for the application as a whole.
Diagnostic suggestion:
Logs from
~/Library/Logs/so.cap.desktop/would help confirm whether the hardware encoder is being used and if there are any fallback warnings. The app's "Upload Logs" feature can capture these automatically.m13v commentedon Apr 24, 2026
Classic ScreenCaptureKit + VTCompressionSession dual-GPU cross-surface copy. NSSupportsAutomaticGraphicsSwitching=false pins to dGPU, but you still pay the PCIe cost every frame if SCStream's IOSurface lives on a different GPU than the encoder. Real fix: match SCStreamConfiguration pixelFormat and colorSpace to what VT expects without a conversion (BGRA + Rec709), plus set kVTVideoEncoderSpecification_EnableHardwareAcceleratedVideoEncoder. On a 2019 MBP with Radeon Pro, forcing iGPU actually ran smoother than dGPU because the integrated H.265 ASIC handles capture fine and you skip the cross-surface copy entirely.
AasishDairelSahayaGrinspan commentedon Apr 24, 2026
Playback and scrubbing inside Cap is broken/laggy on MacBook Pro 2019 (iGPU). The recorded file plays perfectly fine in other apps, so the file is fine. The issue is Cap's own preview/playback renderer it appears to be using the iGPU for playback rendering, which causes lag and makes scrubbing unusable. The fix needs to be on the playback side, not just the recording pipeline specifically using AVPlayerLayer or AVSampleBufferDisplayLayer with proper GPU selection instead of rendering video through WebView.
richiemcilroy commentedon Aug 3, 2026
This doesn't have enough detail, no logs, to act on as filed. Please re-file with your current version, GPU details, and logs if recording is still forcing the integrated GPU on your 2019 MacBook Pro.