perf(host): the fullscreen window keeps its caption's style bits, so AMD's Windows driver no longer halves the GPU clock in fullscreen #2897

Merged
HumanBean merged 9 commits from klimovich008/Longshot:perf/framed-fullscreen into main 2026-12-01 00:30:40 +00:00
Member

Summary

In borderless fullscreen on Windows, AMD's driver ran an RX 9070 XT at about half its clock in play: ~1,600 MHz, against ~3,060 MHz for the same game in a window. At 5120x1440 that cost a fifth of the frame rate. The cause is the window's style. A fullscreen window with no frame style bits gets the low clock. One that keeps its caption's style bits does not, whether Windows composites it or not. Composited fullscreen (a topmost window, one pixel short of the monitor, an invisible overlay) kept the low clock and added ~12 ms of display latency, so that is not the fix.

This PR keeps the caption's style bits (WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX) on the fullscreen window and answers WM_NCCALCSIZE so the frame has no area. The client area is the whole monitor: same picture, same swapchain size, and the same flips (PresentMon: "Hardware: Independent Flip", tearing allowed). It is on by default on Windows; HOS_FULLSCREEN_FRAMED=0 gives the plain window back. Linux/SDL is untouched.

What else changed with it:

  • The Insert menu's Fullscreen row told fullscreen by "no caption". The host now marks the framed window with a property (Longshot.FramedFullscreen) and the row reads it. Without that, a run saved fullscreen=0 and the next start was windowed.
  • While fullscreen, the window menu's Move, Size, Maximize and Restore are refused (Alt+Space would otherwise move the fullscreen window). The sizing frame and maximize box stay off, so the Windows key's snap shortcuts leave it alone, as before.
  • Desktop-drawn corners and border are turned off (DWM attributes, dwmapi loaded from System32 only) while it is fullscreen.

Read first: host/fullscreen_style.h (the rule), host/display.c (fullscreen_framed, set_fullscreen, wndproc's WM_NCCALCSIZE and WM_SYSCOMMAND), gpu/vk/vk_menu.cpp fullscreen_tick.

Testing

Tested: Windows 11, RX 9070 XT, Adrenalin 26.11.2, 5120x1440 borderless fullscreen, Castle Town Market (child). The game runs fullscreen with the framed window. PresentMon 2.6.0 shows Independent Flip with tearing allowed in both arms. Repeated starts of the branch's head came up fullscreen from the saved setting (display: fullscreen, swapchain 5120x1440, 104.8 and 102.9 fps at ~3,060 MHz, against 78.8 fps at 1,585 MHz with =0). That was before the last commit, which only flips the default.

  • tests/test_fullscreen_monitor_platform.py runs the style rule through set_fullscreen: entry, a failed entry, a failed leave, a refused mark, and the default being on. Negative control: the plain style in place of the rule fails the framed checks; reading the switch as off by default fails the default check.
  • host/display.c compiled whole with the build's own flags (llvm-mingw), no errors. mise run lint passes.
  • tests/test_screensaver.py and tests/test_switch_table.py fail here and on main 28cb22b9e alike (the screensaver fixture lacks WM_NCDESTROY and four of the window procedure's newer calls; LONGSHOT_LAUNCHER_STARTUP has no row in switches.def).
  • Eight sol review rounds. Every defect in our code they found is fixed in the commits here; the last round found only the third-party fullscreen detectors in Risks.

Still to test:

  • NVIDIA, Intel and AMD on Windows, fullscreen, uncapped: HOS_FULLSCREEN_FRAMED=0 against the default, expecting no loss anywhere and a gain where the driver rests the clock (@Beanstalk)
  • Windows with HDR on: fullscreen with the default, expecting HDR output as with =0 (by hand)
  • Alt+Tab, minimise and restore, F11, the Insert menu's Fullscreen row, a second monitor, a DPI change, Steam and Discord overlays: expecting the same behaviour as with =0 (by hand)
  • A VRR (FreeSync / G-Sync) display: VRR still engages in fullscreen (by hand)

Measurements

Verdict: +27 % fps with the upscaler off and +22 % with FSR 4 on an RX 9070 XT at 5120x1440, from the GPU clock staying up. 3 of 3 pairs each, no frame over 100 ms in any run.

Setup: Windows 11, RX 9070 XT, Adrenalin 26.11.2, 5120x1440 borderless fullscreen, Castle Town Market child, uncapped (HOS_FPS_MAX=240), 20 s window, 3 alternating pairs, game clock 0.998-1.002. Built on main 28cb22b9e with six other open PRs merged (#2240, #2864, #2768, #2831, #2843, #2360), not on main alone; the switch unset against =1 in the same build. This PR's own numbers on main come from the Test Farm.

HOS_FULLSCREEN_FRAMED off framed (this PR's default)
Upscaler Off: fps 81.8 104.1
Upscaler Off: GPU ms / GPU MHz 8.7 / 1,631 5.6 / 3,056
Upscaler Off: p99 frame ms 18.4 16.3
FSR 4 100 %: fps 69.4 84.6
FSR 4 100 %: GPU ms / GPU MHz 10.5 / 1,679 7.3 / 3,053
FSR 4 100 %: p99 frame ms 21.8 19.4
PresentMon (single runs): present mode Independent Flip Independent Flip
PresentMon: MsUntilDisplayed median / p99 0.49 / 0.79 0.41 / 0.57

How the cause was found (single runs, PresentMon): a small topmost window over fullscreen 83.6 fps @ 1,671 MHz, composed; an invisible full-screen window 86.9 @ 1,847, composed; borderless one pixel past or short of the monitor 84.5 / 83.0, composed; WS_EX_LAYERED 80.9 @ 1,614, Independent Flip; a 1280x720 window 97.4 @ 3,083; the framed fullscreen window 104.6 @ 3,074, Independent Flip. Composited arms added ~12 ms MsUntilDisplayed. VK_EXT_full_screen_exclusive on or off and FIFO made no difference.

Risks

  • It changes the fullscreen window for every Windows player. Anything that reads the window's style to decide "fullscreen" (an overlay, a capture tool, our own code) now sees a caption style. The Insert menu's row is handled; others are in Still to test. HOS_FULLSCREEN_FRAMED=0 (in config/longshot_env.txt or the environment) gives the old window; a revert is enough.
  • Tools that decide "fullscreen" from the window's style no longer see it as fullscreen. Two found in published code: Windhawk's Auto Refresh Rate mod (its refresh-rate boost on F11 does not apply) and WinXCorners (its hot corners stay active over the game). HOS_FULLSCREEN_FRAMED=0 restores both.
  • Why AMD's driver rests the clock under the plain window is not known, only which style triggers it on this card. Other drivers may show no change; the Test Farm run checks that nothing loses.
  • Nothing changes in saves, longshot_options.ini or the shader caches (no stamped file is touched).

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit.
  • Tested on my own PC, in the game for a change the game runs, as Testing says.
  • mise run test passes (any failure that also fails on main is named).
  • Measured against main, or Measurements says why there is nothing to measure.
  • No game files, build output or hand-edited generated files; third_party/ untouched; nothing GPL-incompatible.

When it applies

  • A switch added or changed: it ships at the default the measurements chose, with its row in gpu/vk/switches.def.
  • A check under tests/ that reads changed source is updated, not weakened.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths.
  • Docs updated.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers").
  • Approved in review, every comment answered.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold.

🤖 Generated with Claude Code

## Summary In borderless fullscreen on Windows, AMD's driver ran an RX 9070 XT at about half its clock in play: ~1,600 MHz, against ~3,060 MHz for the same game in a window. At 5120x1440 that cost a fifth of the frame rate. The cause is the window's style. A fullscreen window with no frame style bits gets the low clock. One that keeps its caption's style bits does not, whether Windows composites it or not. Composited fullscreen (a topmost window, one pixel short of the monitor, an invisible overlay) kept the low clock and added ~12 ms of display latency, so that is not the fix. This PR keeps the caption's style bits (`WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX`) on the fullscreen window and answers `WM_NCCALCSIZE` so the frame has no area. The client area is the whole monitor: same picture, same swapchain size, and the same flips (PresentMon: "Hardware: Independent Flip", tearing allowed). It is on by default on Windows; `HOS_FULLSCREEN_FRAMED=0` gives the plain window back. Linux/SDL is untouched. What else changed with it: - The Insert menu's Fullscreen row told fullscreen by "no caption". The host now marks the framed window with a property (`Longshot.FramedFullscreen`) and the row reads it. Without that, a run saved `fullscreen=0` and the next start was windowed. - While fullscreen, the window menu's Move, Size, Maximize and Restore are refused (Alt+Space would otherwise move the fullscreen window). The sizing frame and maximize box stay off, so the Windows key's snap shortcuts leave it alone, as before. - Desktop-drawn corners and border are turned off (DWM attributes, dwmapi loaded from System32 only) while it is fullscreen. Read first: `host/fullscreen_style.h` (the rule), `host/display.c` (`fullscreen_framed`, `set_fullscreen`, `wndproc`'s `WM_NCCALCSIZE` and `WM_SYSCOMMAND`), `gpu/vk/vk_menu.cpp` `fullscreen_tick`. ## Testing **Tested:** Windows 11, RX 9070 XT, Adrenalin 26.11.2, 5120x1440 borderless fullscreen, Castle Town Market (child). The game runs fullscreen with the framed window. PresentMon 2.6.0 shows Independent Flip with tearing allowed in both arms. Repeated starts of the branch's head came up fullscreen from the saved setting (`display: fullscreen`, swapchain 5120x1440, 104.8 and 102.9 fps at ~3,060 MHz, against 78.8 fps at 1,585 MHz with `=0`). That was before the last commit, which only flips the default. - `tests/test_fullscreen_monitor_platform.py` runs the style rule through `set_fullscreen`: entry, a failed entry, a failed leave, a refused mark, and the default being on. Negative control: the plain style in place of the rule fails the framed checks; reading the switch as off by default fails the default check. - `host/display.c` compiled whole with the build's own flags (llvm-mingw), no errors. `mise run lint` passes. - `tests/test_screensaver.py` and `tests/test_switch_table.py` fail here and on `main` 28cb22b9e alike (the screensaver fixture lacks `WM_NCDESTROY` and four of the window procedure's newer calls; `LONGSHOT_LAUNCHER_STARTUP` has no row in `switches.def`). - Eight sol review rounds. Every defect in our code they found is fixed in the commits here; the last round found only the third-party fullscreen detectors in Risks. **Still to test:** - NVIDIA, Intel and AMD on Windows, fullscreen, uncapped: `HOS_FULLSCREEN_FRAMED=0` against the default, expecting no loss anywhere and a gain where the driver rests the clock (@Beanstalk) - Windows with HDR on: fullscreen with the default, expecting HDR output as with `=0` (by hand) - Alt+Tab, minimise and restore, F11, the Insert menu's Fullscreen row, a second monitor, a DPI change, Steam and Discord overlays: expecting the same behaviour as with `=0` (by hand) - A VRR (FreeSync / G-Sync) display: VRR still engages in fullscreen (by hand) ## Measurements **Verdict:** +27 % fps with the upscaler off and +22 % with FSR 4 on an RX 9070 XT at 5120x1440, from the GPU clock staying up. 3 of 3 pairs each, no frame over 100 ms in any run. Setup: Windows 11, RX 9070 XT, Adrenalin 26.11.2, 5120x1440 borderless fullscreen, Castle Town Market child, uncapped (`HOS_FPS_MAX=240`), 20 s window, 3 alternating pairs, game clock 0.998-1.002. Built on `main` 28cb22b9e with six other open PRs merged (#2240, #2864, #2768, #2831, #2843, #2360), not on `main` alone; the switch unset against `=1` in the same build. This PR's own numbers on `main` come from the Test Farm. | | `HOS_FULLSCREEN_FRAMED` off | framed (this PR's default) | |---|---|---| | Upscaler Off: fps | 81.8 | **104.1** | | Upscaler Off: GPU ms / GPU MHz | 8.7 / 1,631 | 5.6 / 3,056 | | Upscaler Off: p99 frame ms | 18.4 | 16.3 | | FSR 4 100 %: fps | 69.4 | **84.6** | | FSR 4 100 %: GPU ms / GPU MHz | 10.5 / 1,679 | 7.3 / 3,053 | | FSR 4 100 %: p99 frame ms | 21.8 | 19.4 | | PresentMon (single runs): present mode | Independent Flip | Independent Flip | | PresentMon: MsUntilDisplayed median / p99 | 0.49 / 0.79 | 0.41 / 0.57 | How the cause was found (single runs, PresentMon): a small topmost window over fullscreen 83.6 fps @ 1,671 MHz, composed; an invisible full-screen window 86.9 @ 1,847, composed; borderless one pixel past or short of the monitor 84.5 / 83.0, composed; `WS_EX_LAYERED` 80.9 @ 1,614, Independent Flip; a 1280x720 window 97.4 @ 3,083; the framed fullscreen window 104.6 @ 3,074, Independent Flip. Composited arms added ~12 ms MsUntilDisplayed. `VK_EXT_full_screen_exclusive` on or off and FIFO made no difference. ## Risks - It changes the fullscreen window for every Windows player. Anything that reads the window's style to decide "fullscreen" (an overlay, a capture tool, our own code) now sees a caption style. The Insert menu's row is handled; others are in Still to test. `HOS_FULLSCREEN_FRAMED=0` (in `config/longshot_env.txt` or the environment) gives the old window; a revert is enough. - Tools that decide "fullscreen" from the window's style no longer see it as fullscreen. Two found in published code: Windhawk's Auto Refresh Rate mod (its refresh-rate boost on F11 does not apply) and WinXCorners (its hot corners stay active over the game). `HOS_FULLSCREEN_FRAMED=0` restores both. - Why AMD's driver rests the clock under the plain window is not known, only which style triggers it on this card. Other drivers may show no change; the Test Farm run checks that nothing loses. - Nothing changes in saves, `longshot_options.ini` or the shader caches (no stamped file is touched). ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. - [x] Tested on my own PC, in the game for a change the game runs, as Testing says. - [ ] `mise run test` passes (any failure that also fails on `main` is named). - [ ] Measured against `main`, or Measurements says why there is nothing to measure. - [x] No game files, build output or hand-edited generated files; `third_party/` untouched; nothing GPL-incompatible. ### When it applies - [x] A switch added or changed: it ships at the default the measurements chose, with its row in `gpu/vk/switches.def`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. - [x] Docs updated. - [x] AI assistance recorded with `Assisted-by:` / `Co-Authored-By:` trailers. ### Ready to merge - [ ] Everything in Still to test has run, its results in Tested. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). - [ ] Approved in review, every comment answered. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
With AMD's Windows driver (Adrenalin 26.11.2, RX 9070 XT) the plain borderless fullscreen window left the GPU's
clock at about half its speed in play. A fullscreen window that keeps its caption's style bits and answers
WM_NCCALCSIZE with the whole window as its client area is the same picture, flipped the same way, and the
clock stays up. The rule is in host/fullscreen_style.h; tests/test_fullscreen_monitor_platform.py runs it
with set_fullscreen and fails with the plain style in its place.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
fullscreen_tick told fullscreen by the window having no caption. HOS_FULLSCREEN_FRAMED's window keeps its
caption's style, so a run with it wrote fullscreen=0 to the settings and the next start was a window. The
host marks the framed fullscreen window with a window property and the row reads it
(hos_fullscreen_shown, host/fullscreen_style.h).

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Review of edeff6d2d: with every frame bit kept, Alt+Space's Maximize resized the fullscreen window; and the
fixture passed with the WM_NCCALCSIZE answer removed. The whole-frame mode is gone (the caption's bits are
the measured mode), the four system commands are refused while framed and fullscreen
(hos_fullscreen_refuses_command), and the test names the window procedure's two uses of the rules.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Second review (a5fd3e54e): GetPropA broke the Linux renderer build; a refused SetPropA left a captioned
fullscreen window the Insert menu's row read as a window; the mark was removed before a restore that could
fail. The test's source checks no longer count commented-out code, and cover the row's read of the mark,
the failed entry and the refused mark.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Third review: =on asked for nothing, against the documented rule for a switch that is on or off.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Fourth review: the fixture cuts the whole window procedure and had no stand-ins for the two new calls. The
plain window makes no IsIconic call in WM_SYSCOMMAND.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Fifth review: under the plain fallback window (its mark refused) the system-command rule still answered, and
LoadLibraryA could take a dwmapi.dll beside the game.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
Sixth review: answering WM_NCCALCSIZE while minimized made the icon's rectangle a client area, a WM_SIZE of
160x28 and a swapchain for it.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
perf(host): framed fullscreen is the default on Windows (HOS_FULLSCREEN_FRAMED=0: the plain window)
Some checks reported errors
CI / What the change needs (pull_request) Successful in 19s
CI / Third-party parts and guide screenshots (pull_request) Failing after 23s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 21s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m14s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 3m34s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m26s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 4m37s
CI / Website build and checks (pull_request) Failing after 29s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 19m39s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 29m46s
beanstalk/approval approved by klimovich008 (reviewed)
beanstalk/windows+nvidia+window 0/1 pass, 1 error
beanstalk/windows+amd+window 1/1 pass
beanstalk/windows+intel+window 0/1 pass, 0 running, 0 queued
PR description / Title and description (pull_request_target) Failing after 6s
5cdd195fcc
AMD's Windows driver rested an RX 9070 XT's clock at about half in play under the plain borderless fullscreen window
(~1,600 against ~3,060 MHz); the framed one keeps it up with the same flips and display latency. On by default so every
player gets it; HOS_FULLSCREEN_FRAMED=0 turns it off (a kill switch now). The test checks the default is read as on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Author
Member

Tested in game: Windows 11, RX 9070 XT, Adrenalin 26.11.2, 5120x1440 borderless fullscreen, Castle Town Market child, uncapped: the framed fullscreen window starts fullscreen from the saved setting, presents as Hardware: Independent Flip with tearing allowed (PresentMon 2.6.0), and keeps the GPU at ~3,060 MHz (104.1 fps) where the plain window rested it at ~1,630 MHz (81.8 fps); 3 alternating pairs, upscaler off and FSR 4.

Tested in game: Windows 11, RX 9070 XT, Adrenalin 26.11.2, 5120x1440 borderless fullscreen, Castle Town Market child, uncapped: the framed fullscreen window starts fullscreen from the saved setting, presents as Hardware: Independent Flip with tearing allowed (PresentMon 2.6.0), and keeps the GPU at ~3,060 MHz (104.1 fps) where the plain window rested it at ~1,630 MHz (81.8 fps); 3 alternating pairs, upscaler off and FSR 4.
Author
Member

@Beanstalk Fullscreen, uncapped: does the framed fullscreen window (this PR's default) change fps or the GPU clock against the plain one, per vendor? On an RX 9070 XT with AMD's Windows driver the plain window rested the GPU at ~1,600 MHz and the framed one kept ~3,060 MHz (+27 % fps at 5120x1440). Every cell fullscreen (fullscreen = 1), frame_rate_cap = 6 (Uncapped), vsync = 2 (Off), frame_generation = 0, the upscaler off, at the machine's native resolution. Judge HOS_FULLSCREEN_FRAMED=0 against the default (unset) in this PR's build with [[pass.compare]] on fps_mean and frametime_p99_ms, alongside the usual comparison with main. Hyrule Field from kokiri-start, a 10 s warm-up, then 30 s measured, 3 runs a side. run_hitch_count and run_frametime_max_ms report-only. A report-only log_match: expected display: framed fullscreen in the default arm and display: fullscreen in both. Report the GPU clock or temperature history where the run records it. Targets: NVIDIA on Windows, Intel on Windows, AMD on Windows (AMD's driver), as many as are free; Linux is untouched by this PR. The question is which Windows drivers gain, and that none loses.

@Beanstalk Fullscreen, uncapped: does the framed fullscreen window (this PR's default) change fps or the GPU clock against the plain one, per vendor? On an RX 9070 XT with AMD's Windows driver the plain window rested the GPU at ~1,600 MHz and the framed one kept ~3,060 MHz (+27 % fps at 5120x1440). Every cell fullscreen (`fullscreen = 1`), `frame_rate_cap = 6` (Uncapped), `vsync = 2` (Off), `frame_generation = 0`, the upscaler off, at the machine's native resolution. Judge `HOS_FULLSCREEN_FRAMED=0` against the default (unset) in this PR's build with `[[pass.compare]]` on `fps_mean` and `frametime_p99_ms`, alongside the usual comparison with main. Hyrule Field from `kokiri-start`, a 10 s warm-up, then 30 s measured, 3 runs a side. `run_hitch_count` and `run_frametime_max_ms` report-only. A report-only `log_match`: expected `display: framed fullscreen` in the default arm and `display: fullscreen` in both. Report the GPU clock or temperature history where the run records it. Targets: NVIDIA on Windows, Intel on Windows, AMD on Windows (AMD's driver), as many as are free; Linux is untouched by this PR. The question is which Windows drivers gain, and that none loses.
Member

Beanstalk test farm · 🔄 testing (2 of 3 reports so far)

Commit 5cdd195 · approved by klimovich008 (reviewed) · dashboard

⚠️ Note: Two runs per side are used instead of three because the two switch arms with three runs would exceed the farm's 60-minute limit.
⚠️ Note: GPU clock and temperature history are not available through the plan's probes; GPU pass time is recorded instead, but cannot establish the clock change.
⚠️ Note: The framed-fullscreen log line is expected only in the default PR arm, so the log probe is report-only; HDR, overlays, VRR and window-management interactions are not exercised.

Done (started 2026-11-30 13:25 UTC, last report 2026-11-30 21:17 UTC). Comment @Beanstalk to run it again.

Target Result Reports VRAM peak (MB) Crashes
windows+nvidia+window ⚠️ couldn't be judged 1 1 — 4 PR runs
windows+amd+window ✅ pass 1 1 — none
windows+intel+window ⏳ queued 0 of 1 — —

fullscreen-field · frame time p99 (ms)

Target main HOS_FULLSCREEN_FRAMED= (reference) HOS_FULLSCREEN_FRAMED=0
windows+nvidia+window — — —
windows+amd+window 10.2 10.3 10.3 (+0%)
windows+intel+window — — —

Couldn't be judged: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own.

  • windows+nvidia+window, report 1: Insufficient frame-time evidence for 4 required comparison(s). See rule results.
What was tested

What will be tested · AI plan (gpt-6.1-terra)

On Windows NVIDIA, AMD and Intel systems, the plan compares the PR's default framed fullscreen window with its plain-window switch and with main in Hyrule Field. Each arm uses native output resolution, uncapped fullscreen, a 10-second warm-up and a 30-second measurement, with two runs per side. The PR fails for a crash or a frame-rate or p99 regression beyond 15%, including when the plain window outperforms the framed default by that margin. Hitch counts, worst frames and fullscreen log matches are reported without pass thresholds.

  • Where: windows+nvidia+window (1-2 reports), windows+amd+window (1-2 reports), windows+intel+window (1-2 reports).
  • Matrix: 2 cells, each on main and the PR: HOS_FULLSCREEN_FRAMED `` or 0 (PR only).
  • fullscreen-field: from the repository's save kokiri-start (settings dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches RX_VK_AUTO_TUNE=0; in a hidden window (the present path runs)), then teleport to Hyrule Field, measure field for 30 s (after 10 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run).
  • Measured: crashes, frame times, stutters and hitches, draws and frame rate, GPU time per pass, the game's log (an expected line that never appears: could not be judged).
  • The PR fails if: it crashes; or the PR's frame rate with HOS_FULLSCREEN_FRAMED=0 is more than 15% above HOS_FULLSCREEN_FRAMED=; or the PR's frame time (p99) with HOS_FULLSCREEN_FRAMED=0 is more than 15% below HOS_FULLSCREEN_FRAMED=; or frame rate is more than 15% below main; or frame time (p99) is more than 15% above main.
  • Time: about 46 min of game runs per tester (8 game starts), plus the two builds.
Measurements on `windows+nvidia+window`, for the PR description

Verdict: could not be judged on windows+nvidia+window (1 report): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1070, 582.78.0 AMD Ryzen 7 9800X3D 8-Core Processor, 64 GB RAM
Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Nothing was measured: no metric came back.

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame rate) Helps / doesn't help / untested
HOS_FULLSCREEN_FRAMED switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default fullscreen-field, main without it → the PR with : not measured untested

As Markdown for the PR description:

## Measurements

**Verdict:** could not be judged on windows+nvidia+window (1 report): required frame-time comparison inconclusive (fewer than two usable starts per side).

Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 582.78.0` `AMD Ryzen 7 9800X3D 8-Core Processor, 64 GB RAM`  
Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

Nothing was measured: no metric came back.

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame rate) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `HOS_FULLSCREEN_FRAMED` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | fullscreen-field, main without it → the PR with : not measured | untested |
Measurements on `windows+amd+window`, for the PR description

Verdict: pass on windows+amd+window (1 report): no rule failed and no PR run crashed.

Hardware: 1: windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report
How to reproduce: the farm's plan above (@Beanstalk on this PR runs it again)

Before: main @ 28cb22b After: this PR @ 5cdd195
fullscreen-field · HOS_FULLSCREEN_FRAMED= (PR only) · field · frame rate 113.1 113.4 (+0%)
fullscreen-field · HOS_FULLSCREEN_FRAMED= (PR only) · field · frame time (p99) (ms) 10.2 10.3 (+1%)
fullscreen-field · HOS_FULLSCREEN_FRAMED=0 (PR only) · field · frame rate 113.1 113.2 (+0%)
fullscreen-field · HOS_FULLSCREEN_FRAMED=0 (PR only) · field · frame time (p99) (ms) 10.2 10.3 (+1%)

Flags and settings

Flag What it is Values tried Before this PR After this PR Effect (frame rate) Helps / doesn't help / untested
HOS_FULLSCREEN_FRAMED switch the PR adds (set on the PR side only) ``, 0 not in main the PR's default fullscreen-field, main without it → the PR with : 113.1 → 113.4 (+0%) no clear effect

As Markdown for the PR description:

## Measurements

**Verdict:** pass on windows+amd+window (1 report): no rule failed and no PR run crashed.

Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM`  
Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them  
Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report  
How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again)

| | Before: main @ 28cb22b | After: this PR @ 5cdd195 |
|---|---|---|
| fullscreen-field · `HOS_FULLSCREEN_FRAMED= (PR only)` · field · frame rate | 113.1 | 113.4 (+0%) |
| fullscreen-field · `HOS_FULLSCREEN_FRAMED= (PR only)` · field · frame time (p99) (ms) | 10.2 | 10.3 (+1%) |
| fullscreen-field · `HOS_FULLSCREEN_FRAMED=0 (PR only)` · field · frame rate | 113.1 | 113.2 (+0%) |
| fullscreen-field · `HOS_FULLSCREEN_FRAMED=0 (PR only)` · field · frame time (p99) (ms) | 10.2 | 10.3 (+1%) |

**Flags and settings**

| Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame rate) | Helps / doesn't help / untested |
|---|---|---|---|---|---|---|
| `HOS_FULLSCREEN_FRAMED` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | fullscreen-field, main without it → the PR with : 113.1 → 113.4 (+0%) | no clear effect |
The testers' hardware
Target Report Ran on
windows+nvidia+window 1 windows+nvidia+nvidia-proprietary+dgpu NVIDIA GeForce GTX 1070, 582.78.0 AMD Ryzen 7 9800X3D 8-Core Processor, 64 GB RAM
windows+amd+window 1 windows+amd+amd-proprietary+dgpu AMD Radeon RX 9070 XT, 2.0.416 AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM
<!-- beanstalk:sticky --> ### Beanstalk test farm · 🔄 testing (2 of 3 reports so far) Commit `5cdd195` · approved by klimovich008 (reviewed) · [dashboard](https://beanstalk.magicbean.dev/prs/2897) ⚠️ **Note:** Two runs per side are used instead of three because the two switch arms with three runs would exceed the farm's 60-minute limit. ⚠️ **Note:** GPU clock and temperature history are not available through the plan's probes; GPU pass time is recorded instead, but cannot establish the clock change. ⚠️ **Note:** The framed-fullscreen log line is expected only in the default PR arm, so the log probe is report-only; HDR, overlays, VRR and window-management interactions are not exercised. Done (started 2026-11-30 13:25 UTC, last report 2026-11-30 21:17 UTC). Comment `@Beanstalk` to run it again. | Target | Result | Reports | VRAM peak (MB) | Crashes | | --- | --- | --- | --- | --- | | `windows+nvidia+window` | ⚠️ couldn't be judged | 1 [1](https://beanstalk.magicbean.dev/reports/rp_2c31d435272daa20) | — | 4 PR runs | | `windows+amd+window` | ✅ pass | 1 [1](https://beanstalk.magicbean.dev/reports/rp_1835a53a79b63d39) | — | none | | `windows+intel+window` | ⏳ queued | 0 of 1 | — | — | **`fullscreen-field`** · frame time p99 (ms) | Target | main | `HOS_FULLSCREEN_FRAMED=` (reference) | `HOS_FULLSCREEN_FRAMED=0` | | --- | --- | --- | --- | | `windows+nvidia+window` | — | — | — | | `windows+amd+window` | 10.2 | 10.3 | 10.3 (+0%) | | `windows+intel+window` | — | — | — | **Couldn't be judged**: the tester's PC could not finish the test. The farm tries another PC, or the same one after a fix; it says nothing about the PR on its own. - `windows+nvidia+window`, [report 1](https://beanstalk.magicbean.dev/reports/rp_2c31d435272daa20): `Insufficient frame-time evidence for 4 required comparison(s). See rule results.` <details><summary>What was tested</summary> **What will be tested** · AI plan (`gpt-6.1-terra`) On Windows NVIDIA, AMD and Intel systems, the plan compares the PR's default framed fullscreen window with its plain-window switch and with main in Hyrule Field. Each arm uses native output resolution, uncapped fullscreen, a 10-second warm-up and a 30-second measurement, with two runs per side. The PR fails for a crash or a frame-rate or p99 regression beyond 15%, including when the plain window outperforms the framed default by that margin. Hitch counts, worst frames and fullscreen log matches are reported without pass thresholds. - **Where:** windows+nvidia+window (1-2 reports), windows+amd+window (1-2 reports), windows+intel+window (1-2 reports). - **Matrix:** 2 cells, each on main and the PR: HOS_FULLSCREEN_FRAMED `` or `0` (PR only). - **fullscreen-field:** from the repository's save `kokiri-start` (settings dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0; switches `RX_VK_AUTO_TUNE=0`; in a hidden window (the present path runs)), then teleport to Hyrule Field, measure field for 30 s (after 10 s warm-up); 2 runs on each side for each of 2 cells (2 game starts a run). - **Measured:** crashes, frame times, stutters and hitches, draws and frame rate, GPU time per pass, the game's log (an expected line that never appears: could not be judged). - **The PR fails if:** it crashes; or the PR's frame rate with HOS_FULLSCREEN_FRAMED=0 is more than 15% above HOS_FULLSCREEN_FRAMED=; or the PR's frame time (p99) with HOS_FULLSCREEN_FRAMED=0 is more than 15% below HOS_FULLSCREEN_FRAMED=; or frame rate is more than 15% below main; or frame time (p99) is more than 15% above main. - **Time:** about 46 min of game runs per tester (8 game starts), plus the two builds. </details> <details><summary>Measurements on `windows+nvidia+window`, for the PR description</summary> **Verdict:** could not be judged on windows+nvidia+window (1 report): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 582.78.0` `AMD Ryzen 7 9800X3D 8-Core Processor, 64 GB RAM` Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame rate) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_FULLSCREEN_FRAMED` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | fullscreen-field, main without it → the PR with : not measured | untested | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** could not be judged on windows+nvidia+window (1 report): required frame-time comparison inconclusive (fewer than two usable starts per side). Hardware: 1: windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 582.78.0` `AMD Ryzen 7 9800X3D 8-Core Processor, 64 GB RAM` Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) Nothing was measured: no metric came back. **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame rate) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_FULLSCREEN_FRAMED` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | fullscreen-field, main without it → the PR with : not measured | untested | ``` </details> <details><summary>Measurements on `windows+amd+window`, for the PR description</summary> **Verdict:** pass on windows+amd+window (1 report): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 28cb22b | After: this PR @ 5cdd195 | |---|---|---| | fullscreen-field · `HOS_FULLSCREEN_FRAMED= (PR only)` · field · frame rate | 113.1 | 113.4 (+0%) | | fullscreen-field · `HOS_FULLSCREEN_FRAMED= (PR only)` · field · frame time (p99) (ms) | 10.2 | 10.3 (+1%) | | fullscreen-field · `HOS_FULLSCREEN_FRAMED=0 (PR only)` · field · frame rate | 113.1 | 113.2 (+0%) | | fullscreen-field · `HOS_FULLSCREEN_FRAMED=0 (PR only)` · field · frame time (p99) (ms) | 10.2 | 10.3 (+1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame rate) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_FULLSCREEN_FRAMED` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | fullscreen-field, main without it → the PR with : 113.1 → 113.4 (+0%) | no clear effect | As Markdown for the PR description: ```markdown ## Measurements **Verdict:** pass on windows+amd+window (1 report): no rule failed and no PR run crashed. Hardware: 1: windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` Scene: fullscreen-field, from the repository's save kokiri-start (dlss=6, vsync=2, fullscreen=1, resolution=1, frame_rate_cap=6, quality_preset=0, frame_generation=0, RX_VK_AUTO_TUNE=0); each cell's settings and switches as the table names them Method: the Beanstalk test farm: main and this PR built and run on the same PC in one session, game starts alternating (ABBA); fullscreen-field: 2 game starts a side, field 30 s after 10 s warm-up; each number the median of the runs, then of 1 report How to reproduce: the farm's plan above (`@Beanstalk` on this PR runs it again) | | Before: main @ 28cb22b | After: this PR @ 5cdd195 | |---|---|---| | fullscreen-field · `HOS_FULLSCREEN_FRAMED= (PR only)` · field · frame rate | 113.1 | 113.4 (+0%) | | fullscreen-field · `HOS_FULLSCREEN_FRAMED= (PR only)` · field · frame time (p99) (ms) | 10.2 | 10.3 (+1%) | | fullscreen-field · `HOS_FULLSCREEN_FRAMED=0 (PR only)` · field · frame rate | 113.1 | 113.2 (+0%) | | fullscreen-field · `HOS_FULLSCREEN_FRAMED=0 (PR only)` · field · frame time (p99) (ms) | 10.2 | 10.3 (+1%) | **Flags and settings** | Flag | What it is | Values tried | Before this PR | After this PR | Effect (frame rate) | Helps / doesn't help / untested | |---|---|---|---|---|---|---| | `HOS_FULLSCREEN_FRAMED` | switch the PR adds (set on the PR side only) | ``, `0` | not in main | the PR's default | fullscreen-field, main without it → the PR with : 113.1 → 113.4 (+0%) | no clear effect | ``` </details> <details><summary>The testers' hardware</summary> | Target | Report | Ran on | | --- | --- | --- | | `windows+nvidia+window` | [1](https://beanstalk.magicbean.dev/reports/rp_2c31d435272daa20) | windows+nvidia+nvidia-proprietary+dgpu `NVIDIA GeForce GTX 1070, 582.78.0` `AMD Ryzen 7 9800X3D 8-Core Processor, 64 GB RAM` | | `windows+amd+window` | [1](https://beanstalk.magicbean.dev/reports/rp_1835a53a79b63d39) | windows+amd+amd-proprietary+dgpu `AMD Radeon RX 9070 XT, 2.0.416` `AMD Ryzen 7 5800X3D 8-Core Processor, 32 GB RAM` | </details>
Owner
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The reported RX 9070 XT gain is promising, but the comparison against the PR’s base and coverage of other Windows drivers are still outstanding. Recommend approval; not approved on the forge.

The change keeps caption style bits on the Windows fullscreen window to avoid a low GPU clock observed on an RX 9070 XT. It adds a fallback switch and updates the menu’s fullscreen detection, at the cost of compatibility with utilities that detect fullscreen from window styles.

Testing before merging (2) (runs on the systems it can change; it doesn't hold the recommendation)

  • L1: The gain has not been measured between this head and its base without the six other open PRs in the build. When: The reported 27% and 22% gains compare two switch settings in a combined build, so they do not establish the effect of this PR on main. Do: Run interleaved base-versus-head measurements on the affected AMD setup, recording average and 1% low fps, median and p99 frame time, and GPU clock.
  • L2 host/display.c:218: The new default affects every Windows fullscreen player, while its presentation and performance have only been reported on one AMD configuration. (more on the line) Do: Complete the requested Windows vendor comparisons and the listed HDR, VRR, overlay, monitor and fullscreen-transition checks against the plain window.

Questions (2) (not confirmed from the code; they don't hold the recommendation)

  • host/fullscreen_style.h:26: Can you provide the relevant detection code or test results for those versions of Windhawk Auto Refresh Rate and WinXCorners?
  • tests/test_fullscreen_monitor_platform.py:241: What current incorrect window-procedure behavior do these checks miss?

Checks: Failing on this head, which is behind its base, where they pass: CI / Third-party parts and guide screenshots (pull_request), CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request), CI / Website build and checks (pull_request), CI / Game-free checks (run_all.py, part 1/2) (pull_request), CI / Game-free checks (run_all.py, part 2/2) (pull_request). @rebase (or @fix) brings it up to date and runs them again; not held against it.

More: does it help, other systems, switches, what was read

Does it help: Unproven against the PR base. The author reports three alternating pairs on an RX 9070 XT: 81.8 to 104.1 fps without upscaling and 69.4 to 84.6 fps with FSR 4, with p99 frame time improving in both cases. Those runs used a build containing six other open PRs and compared switch settings within that build; the requested base-versus-head Test Farm results are pending.

Other systems: The Windows window style can affect driver presentation, HDR, VRR, overlays, capture and fullscreen-detecting utilities. The author reports Independent Flip on the tested AMD setup, but the listed NVIDIA, Intel, HDR, VRR, overlay and window-transition runs remain outstanding. Linux uses the existing SDL fullscreen path; the shared menu helper retains its previous caption-based result there.

Switches: HOS_FULLSCREEN_FRAMED is added, default on for Windows; 0 restores the plain borderless window. It is in switches.def, but the default breaks known fullscreen-detecting utilities and has not yet been measured across the Windows drivers it affects.

Reviewed: 5cdd195fcc against 28cb22b9ed: Read AGENTS.md, CONTRIBUTING.md, the PR template and standards; the diff and commit messages; host/display.c, host/fullscreen_style.h, tests/screensaver_test.c and tests/test_fullscreen_monitor_platform.py; and the changed menu function and surrounding fullscreen callers. Skimmed the remainder of vk_menu.cpp, the switch table and switch documentation. docs/review-checklist.md is absent. No recorded runs or generated files changed.; nothing run (a code review).

Checked and fine:

  • The changed commits record AI assistance in trailers.
  • No game-derived files, generated shader files, renderer API changes or third-party modifications appear in the diff.
  • The framed-window property is retained on a failed windowed restore, and a failed initial mark attempts a plain-window fallback.

Testing: No code, tests or project scripts were run for this review. The author reports an in-game Windows AMD run and identifies two checks that also fail on the base; the supplied CI results have no head-only failures.

Overlaps and merge order: No overlap information was supplied; the network is closed.


Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.

**Recommendation: Approve.** The code is ready: only testing is left. The reported RX 9070 XT gain is promising, but the comparison against the PR’s base and coverage of other Windows drivers are still outstanding. Recommend approval; not approved on the forge. The change keeps caption style bits on the Windows fullscreen window to avoid a low GPU clock observed on an RX 9070 XT. It adds a fallback switch and updates the menu’s fullscreen detection, at the cost of compatibility with utilities that detect fullscreen from window styles. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1**: The gain has not been measured between this head and its base without the six other open PRs in the build. *When:* The reported 27% and 22% gains compare two switch settings in a combined build, so they do not establish the effect of this PR on main. **Do:** Run interleaved base-versus-head measurements on the affected AMD setup, recording average and 1% low fps, median and p99 frame time, and GPU clock. - **L2** `host/display.c:218`: The new default affects every Windows fullscreen player, while its presentation and performance have only been reported on one AMD configuration. (more on the line) **Do:** Complete the requested Windows vendor comparisons and the listed HDR, VRR, overlay, monitor and fullscreen-transition checks against the plain window. **Questions (2)** (not confirmed from the code; they don't hold the recommendation) - `host/fullscreen_style.h:26`: Can you provide the relevant detection code or test results for those versions of Windhawk Auto Refresh Rate and WinXCorners? - `tests/test_fullscreen_monitor_platform.py:241`: What current incorrect window-procedure behavior do these checks miss? **Checks:** Failing on this head, which is behind its base, where they pass: `CI / Third-party parts and guide screenshots (pull_request)`, `CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request)`, `CI / Website build and checks (pull_request)`, `CI / Game-free checks (run_all.py, part 1/2) (pull_request)`, `CI / Game-free checks (run_all.py, part 2/2) (pull_request)`. `@rebase` (or `@fix`) brings it up to date and runs them again; not held against it. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven against the PR base. The author reports three alternating pairs on an RX 9070 XT: 81.8 to 104.1 fps without upscaling and 69.4 to 84.6 fps with FSR 4, with p99 frame time improving in both cases. Those runs used a build containing six other open PRs and compared switch settings within that build; the requested base-versus-head Test Farm results are pending. **Other systems:** The Windows window style can affect driver presentation, HDR, VRR, overlays, capture and fullscreen-detecting utilities. The author reports Independent Flip on the tested AMD setup, but the listed NVIDIA, Intel, HDR, VRR, overlay and window-transition runs remain outstanding. Linux uses the existing SDL fullscreen path; the shared menu helper retains its previous caption-based result there. **Switches:** HOS_FULLSCREEN_FRAMED is added, default on for Windows; 0 restores the plain borderless window. It is in switches.def, but the default breaks known fullscreen-detecting utilities and has not yet been measured across the Windows drivers it affects. **Reviewed:** 5cdd195fcce4 against 28cb22b9ed23: Read AGENTS.md, CONTRIBUTING.md, the PR template and standards; the diff and commit messages; host/display.c, host/fullscreen_style.h, tests/screensaver_test.c and tests/test_fullscreen_monitor_platform.py; and the changed menu function and surrounding fullscreen callers. Skimmed the remainder of vk_menu.cpp, the switch table and switch documentation. docs/review-checklist.md is absent. No recorded runs or generated files changed.; nothing run (a code review). **Checked and fine:** - The changed commits record AI assistance in trailers. - No game-derived files, generated shader files, renderer API changes or third-party modifications appear in the diff. - The framed-window property is retained on a failed windowed restore, and a failed initial mark attempts a plain-window fallback. **Testing:** No code, tests or project scripts were run for this review. The author reports an in-game Windows AMD run and identifies two checks that also fail on the base; the supplied CI results have no head-only failures. **Overlaps and merge order:** No overlap information was supplied; the network is closed. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
@ -212,0 +215,4 @@
static int framed_fullscreen;
/* HOS_FULLSCREEN_FRAMED (fullscreen_style.h): read once, said once when it asks for anything */
static int fullscreen_framed(void) {
static int mode = -1;
Member

L2 (should fix): The new default affects every Windows fullscreen player, while its presentation and performance have only been reported on one AMD configuration.

When: NVIDIA and other AMD Windows drivers, as well as HDR, VRR and overlay configurations, can select presentation behavior from the changed window style; their behavior is not covered by the reported run.

Do: Complete the requested Windows vendor comparisons and the listed HDR, VRR, overlay, monitor and fullscreen-transition checks against the plain window.

**L2** (should fix): The new default affects every Windows fullscreen player, while its presentation and performance have only been reported on one AMD configuration. *When:* NVIDIA and other AMD Windows drivers, as well as HDR, VRR and overlay configurations, can select presentation behavior from the changed window style; their behavior is not covered by the reported run. **Do:** Complete the requested Windows vendor comparisons and the listed HDR, VRR, overlay, monitor and fullscreen-transition checks against the plain window.
HumanBean changed title from WIP: perf(host): the fullscreen window keeps its caption's style bits, so AMD's Windows driver no longer halves the GPU clock in fullscreen to perf(host): the fullscreen window keeps its caption's style bits, so AMD's Windows driver no longer halves the GPU clock in fullscreen 2026-12-01 00:30:36 +00:00
HumanBean deleted branch perf/framed-fullscreen 2026-12-01 00:30:40 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
4 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
MagicBeanDev/Longshot!2897
No description provided.