Skip to content

frontend: the NVENC check through the platform facade (#873) - #2029

Merged
zackees merged 2 commits into
masterfrom
infra/873-nvenc
Oct 24, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/873-nvenc

Conversation

@zackees

@zackees zackees commented Oct 24, 2026 •

Copy link
Copy Markdown
Member

Refs #873 (OBSBasic_Profiles).

Moves the three host conditionals in frontend/widgets/OBSBasic_Profiles.cpp.hpp behind a single facade call, const char *GetPlatformNvencTestProgram():

  • Windows: "obs-nvenc-test.exe"
  • Linux/BSD: "obs-nvenc-test"
  • macOS: nullptr, meaning the host has no NVENC

CheckNVENCInternal and CheckNVENC now compile on every host. The missing-encoder loop sends an nvenc encoder to them only when GetPlatformNvencTestProgram() is non-null. On macOS such an encoder falls through to CheckHardwareEncoder, as it did before.

  • Behavior: unchanged on every host.
  • PCH: no PCH change, so no full run is required. The PR's macOS build covers the newly compiled code.
  • Ratchet: the baseline goes down by 3.

RED test_nvenc_check_goes_through_the_facade fails on master. GREEN it passes, and ./lint is clean.

Full run 40054610761 on the pre-rebase branch (#2025's tray commits plus this slice): Windows x64/arm64, macOS arm64/x86_64, Ubuntu (OBS-Studio-Rust) and Flatpak all built successfully. #2025 has since merged and this branch is rebased onto master.

@zackees
zackees marked this pull request as ready for review October 24, 2026 02:52
@zackees
zackees enabled auto-merge October 24, 2026 02:52
@zackees
zackees added this pull request to the merge queue Oct 24, 2026
Merged via the queue into master with commit ec2a5a9 Oct 24, 2026
31 checks passed
@zackees
zackees deleted the infra/873-nvenc branch October 26, 2026 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant