Respect the selected output size when compositing a larger HUD #144

Manually merged
github merged 2 commits from github-bot/gh-144 into main 2026-12-05 21:05:15 +00:00 AGit
Owner

@⁠yyc160 on GitHub · 2026-12-05 19:43 UTC · original
yyc160:fix/respect-compositor-output-mode → main · +53 −3 · 4 files · 2 commits · merged 2026-12-05 21:02 UTC

An explicit output mode and the size of an individual display plane are different. A 1920x1080 scene with a 3840x2160 authored HUD currently ends up with a 3840x2160 swap chain, even if the upscaler and frame generator both produced a 1920x1080 picture.

Use the effective startup setting (including an environment override) for composition and the swap chain. Leave the authored UI canvas, exposure, aspect-ratio handling and OS display mode alone. With no explicit setting the previous largest-plane rule is unchanged.

Checks: cargo test --release --locked -p larp-gpu --lib output_mode:: and cargo check --release --locked -p larp. Tests switch between a menu, a scene with a larger HUD and a scene without HUD. A separate offscreen D3D12 check read back the expected blended colours at both sizes; this is not a gameplay FPS claim.

AI-assisted by GPT-6.2 Astra.

**@⁠yyc160** on GitHub · 2026-12-05 19:43 UTC · [original](https://github.com/gamingwithhomie/larp/pull/144) `yyc160:fix/respect-compositor-output-mode` → `main` · +53 −3 · 4 files · 2 commits · merged 2026-12-05 21:02 UTC An explicit output mode and the size of an individual display plane are different. A 1920x1080 scene with a 3840x2160 authored HUD currently ends up with a 3840x2160 swap chain, even if the upscaler and frame generator both produced a 1920x1080 picture. Use the effective startup setting (including an environment override) for composition and the swap chain. Leave the authored UI canvas, exposure, aspect-ratio handling and OS display mode alone. With no explicit setting the previous largest-plane rule is unchanged. Checks: `cargo test --release --locked -p larp-gpu --lib output_mode::` and `cargo check --release --locked -p larp`. Tests switch between a menu, a scene with a larger HUD and a scene without HUD. A separate offscreen D3D12 check read back the expected blended colours at both sizes; this is not a gameplay FPS claim. AI-assisted by GPT-6.2 Astra.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-05 19:49:05 +00:00
github-bot referenced this pull request from a commit 2026-12-05 21:05:09 +00:00
github manually merged commit 1e901ed7f4 into main 2026-12-05 21:05:15 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.