WIP: fix(host): the Output resolution none chose fits the window it is shown in #2542

Draft
dazemc wants to merge 2 commits from dazemc/Longshot:fix/output-window-default into main
Contributor

Summary

A new install's Output resolution was worked out from the screen alone: the game's 2560x1440, or the screen's size where
that is smaller. A windowed start drew that whole picture into a much smaller window and let the present scale it down, so
a 1080p screen in a 1280x720 window drew 1920x1080: 2.25x the pixels for no more detail, all of them drawn.

This fits the size nobody chose to the window's client area instead: its shape kept, each side a whole multiple of 8 and at
least the game's 640x360. A size the player asked for is untouched — an output_res= line, HOS_OUTPUT_RES, or a row
picked in the menu still draws larger than the window when it says so, and the Window scaling filter scales it down as
before. A picture the Aspect ratio widens keeps the boot's size. The Insert menu's first start now saves the size the run
actually drew (MkwVkHost.output_size, API version 49) instead of working the default out again, so the row and the run
cannot part.

This is a policy change, not a defect: gpu/vk/auto_settings.h:37-39 says the Auto preset deliberately never picks the
output resolution, and host/hos_wide_size.h:18-30 fitted to the screen, not the window. The trade is real — a smaller
picture than the screen is a quality choice someone may not want, especially on a high-DPI display where the old default
could look sharper in an enlarged window. The change applies only when nobody asked: a chosen size, a chosen row, and every
existing install (whose first start already saved output_res=) are left exactly as they are. If the maintainers would
rather keep the old default, that is a legitimate rejection, and a revert of this one commit is enough.

To see the old behaviour on main: on a 1080p or larger screen, start windowed with a profile that has no output_res=
line. The log says oe: output resolution 1920x1080 (none chosen: the screen's, smaller than the game's 2560x1440) (or
2560x1440 on a larger screen) and the present scales that picture into the window.

Read first: host/hos_wide_size.h (hos_output_default), host/nn_applet.c (output_mode), host/display.c and
host/posix/display_sdl.c (hos_display_client_size), gpu/vk/vk_menu.cpp (menu_init).

Rebase status (2026-11-25, current): 9f5d17771 → ca9df7502 onto main @ 8f7300756701b7c9a278e576bb075ac20e622a32. Stable patch-id 747aefab4230ee24ce3778bbf50459335cbf000b is unchanged and main's old-base→new-main file intersection with this PR is empty. The evidence already named below (suite, platform, in-game and measurement, as applicable) therefore still stands at the historical heads that produced it. Earlier rebase notes are history; where they say "this head", they mean the evidence commit named beside that run, not ca9df7502. The suite re-run already started at 9f5d17771; because the diff and intersection meet the rule above, its result will carry to ca9df7502, but it is not claimed until it finishes.

Testing

Tested: Linux, NVIDIA RTX 4070 Ti, Vulkan 1.4, driver 620.73.04; windowed start from assets/saves/kokiri-start,
KokiriForest_Child, HOS_WINDOW_SIZE=1280x720, HOS_AUDIO=0, RX_VK_PASS_TIMING=1, and a profile with no
output_res= line at launch. The default drew 1920x1080 (oe: output resolution 1920x1080 (none chosen: the window's, or the screen's where smaller), log sha256 33e6d9a1d31bd23fb6687dab421f38e0be08f0b4931c8a3bc08f0e906d192622) at 60.0 fps,
vk: 5.66 ms a frame in all. The same build, window and save with HOS_OUTPUT_RES=2560x1440 — main's answer on this
3840x2160 screen — drew 2560x1440 (oe: output resolution 2560x1440, log sha256
dcfe3eafe9a42db20ffed78b37150ed317c1fde90e971cf0610ec749672793ec) at 60.0 fps, vk: 6.87 ms a frame in all. Both runs
are at 1084d099c, the branch before its rebase. The rebased head 01881ab6e has a byte-identical change diff
(sha256 797b6ed03343f5780e23e96a9e7dd7952e17ffccd0f62ccd060d33c8ba76f14b), and the one base commit between them
(7eb53d1a0) changes only .forgejo/, builder/crates/ and docs/user/common-issues.md, none of the files this change
touches, so the run describes this change's code.

The PR's own test fails on main with the reason in the checklist below and passes at this head; that is the game-free
check, not a substitute for the runs above.

The suite at 01881ab6 ran: 832 passed, 3 failed, 8 skipped in 504 s. Two failures are main's — bc_claim
undeclared in the display-startup cut (host/hos_main.c:978, fixed by #2539, not here) and
test_title_card_strips.py's oot_patches import. The third was this change's fixture: tests/test_screensaver.py cuts
only wndproc out of host/display.c, and the new publish_client_size call in WM_SIZE had no declaration in the
fixture, so it failed to compile under -Werror. The fixture now mocks it with the production signature — WM_SIZE is
never sent, and the production call stays in the cut procedure — at 9f5d17771, where the fixture passes. A suite re-run at 9f5d17771 is in progress; its result carries to ca9df7502 under the empty-intersection rule above.

Still to test:

  • Windows (llvm-mingw): build this head and run a windowed start on the GTX 1650 box, expecting the window-fitted default; the 34.6 → 44.6 fps figure below is an adjacent pair on the existing whole-pack build, not this branch on that box (by hand)
  • A full mise run test: the run at 01881ab6 had two main failures and the fixture defect above, now fixed; the re-run at 9f5d17771 is in progress and carries to ca9df7502 under the empty-intersection rule (by hand, suite owner)
  • A main-vs-this screenshot pair at the same spot: the shots on disk are this build at the old and new defaults, not a main build (by hand)

Measurements

Verdict: On this PC the new default drew 1920x1080 where the old default drew 2560x1440 in the same window, and
vk: a frame in all fell 6.87 → 5.66 ms (−1.21 ms, −17.6 %) with 60.0 fps on both sides (this PC is game-paced
here, so the saving is not visible as fps). On a GTX 1650 the same choice measured 34.6 → 44.6 fps in an adjacent pair
at 720p against 1080p of output and an identical 3D size; that pair is an earlier measurement on the existing whole-pack
build, not this branch on that box.

Setup: Linux, NVIDIA RTX 4070 Ti, Vulkan 1.4, driver 620.73.04; assets/saves/kokiri-start,
KokiriForest_Child, HOS_WINDOW_SIZE=1280x720, HOS_AUDIO=0, Auto (this PC) preset, no output_res= line at launch,
RX_VK_PASS_TIMING=1. vk: a frame in all is the log's own mean of the timed command buffers in play.

Before: main @ 7eb53d1a0 After: this PR @ 1084d099c
Output resolution drawn 2560x1440 1920x1080
vk: a frame in all, ms 6.87 5.66
fps 60.0 60.0

Baseline: the Before column is this branch's build with HOS_OUTPUT_RES=2560x1440, which draws exactly main's default on
this 3840x2160 screen (main's hos_output_default picks the game's 2560x1440); main was not rebuilt for the pair. The
After commit is the head that ran; the rebased head 01881ab6e has the byte-identical diff named under Testing.

Risks

  • A smaller picture than the screen is a quality choice someone may not want: at the same window the default now draws
    fewer pixels. This is the whole point of the change and the reason to reject it if the maintainers disagree. It applies
    only when nobody asked.
  • A player-chosen output_res= line, HOS_OUTPUT_RES, or a picked row is drawn exactly as before, larger than the window
    when it says so (the Window scaling filter still scales it down). Existing installs have such a line, saved on their
    first start, so only a new install (no line) takes the new default.
  • A picture the Aspect ratio widens (21:9, 16:10, 4:3...) keeps the boot's size; it is not fitted to the window. Narrow
    or wide screens therefore behave as before.
  • A window that is never made (HOS_HEADLESS=1) answers 0 at once and keeps the screen's size; a window that is late is
    waited for up to 2 s, once. If that wait expires the screen's answer stands and the log says
    (none chosen: the screen's, the window not made yet).
  • There is no switch to turn it off: a chosen output_res= line (or a revert) is the way back. No save, cache or
    longshot_options.ini key is renamed; a first start still saves its Output resolution, just the fitted one.

Checklist

Ready for review

  • One topic, on current main; the title is a Conventional Commit. — Rebased head ca9df7502 is directly on main @ 8f7300756701b7c9a278e576bb075ac20e622a32; the preserved diff is the single topic described in Summary.
  • 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). — the suite at 01881ab6 ran (832 passed, 3 failed, 8 skipped): two failures are main's, the third was the screensaver fixture, fixed in 9f5d17771; the re-run at 9f5d17771 is in progress and carries to ca9df7502 only when it finishes.
  • 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 fix: a game-free test that fails on main and passes here. — tests/test_output_resolution.py on main 7eb53d1a0 fails host/hos_wide_size.h: the Output resolution none chose is worked out without the window it is shown in: a 720-high window on a 1080p screen draws 1920x1080 and scales it down (exit 1); it passes at 01881ab6e.
  • A check under tests/ that reads changed source is updated, not weakened.
  • MKWVK_API_VERSION bumped (MkwVkHost or MkwVkRenderer in gpu/vk/vk_api.h changed). — 48 → 49 for MkwVkHost.output_size.
  • Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. — Linux built and ran here; Windows not built in this session, so the box stays unticked (the 1650 numbers are not this branch).
  • Screenshots of the same spot on main and here, for a change that shows on screen. — the shots on disk are this build at 2560x1440 and at the fitted 1920x1080, not a main build; a main-vs-here pair is owed.
  • Docs updated.
    docs/user/graphics-and-controls.md lines 39 and 86, and the "size you pick is kept" sentence at line 43.
  • AI assistance recorded with Assisted-by: / Co-Authored-By: trailers.

Ready to merge

  • Everything in Still to test has run, its results in Tested. — Merge gate: outstanding items remain in Still to test or are confirmed during review; this update does not tick it.
  • Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). — Merge gate: platform coverage is settled during review; this update does not claim new hardware coverage.
  • Approved in review, every comment answered. — Awaiting reviewer approval and resolution of any review comments.
  • CI passes on the head; on current main, measured again or a comment says why the numbers still hold. — Awaiting CI on the current head; this update does not claim a CI run.
## Summary A new install's Output resolution was worked out from the screen alone: the game's 2560x1440, or the screen's size where that is smaller. A windowed start drew that whole picture into a much smaller window and let the present scale it down, so a 1080p screen in a 1280x720 window drew 1920x1080: 2.25x the pixels for no more detail, all of them drawn. This fits the size nobody chose to the window's client area instead: its shape kept, each side a whole multiple of 8 and at least the game's 640x360. A size the player asked for is untouched — an `output_res=` line, `HOS_OUTPUT_RES`, or a row picked in the menu still draws larger than the window when it says so, and the Window scaling filter scales it down as before. A picture the Aspect ratio widens keeps the boot's size. The Insert menu's first start now saves the size the run actually drew (`MkwVkHost.output_size`, API version 49) instead of working the default out again, so the row and the run cannot part. This is a policy change, not a defect: `gpu/vk/auto_settings.h:37-39` says the Auto preset deliberately never picks the output resolution, and `host/hos_wide_size.h:18-30` fitted to the screen, not the window. The trade is real — a smaller picture than the screen is a quality choice someone may not want, especially on a high-DPI display where the old default could look sharper in an enlarged window. The change applies only when nobody asked: a chosen size, a chosen row, and every existing install (whose first start already saved `output_res=`) are left exactly as they are. If the maintainers would rather keep the old default, that is a legitimate rejection, and a revert of this one commit is enough. To see the old behaviour on `main`: on a 1080p or larger screen, start windowed with a profile that has no `output_res=` line. The log says `oe: output resolution 1920x1080 (none chosen: the screen's, smaller than the game's 2560x1440)` (or 2560x1440 on a larger screen) and the present scales that picture into the window. Read first: `host/hos_wide_size.h` (`hos_output_default`), `host/nn_applet.c` (`output_mode`), `host/display.c` and `host/posix/display_sdl.c` (`hos_display_client_size`), `gpu/vk/vk_menu.cpp` (`menu_init`). **Rebase status (2026-11-25, current):** `9f5d17771` → `ca9df7502` onto `main @ 8f7300756701b7c9a278e576bb075ac20e622a32`. Stable patch-id `747aefab4230ee24ce3778bbf50459335cbf000b` is unchanged and main's old-base→new-main file intersection with this PR is **empty**. The evidence already named below (suite, platform, in-game and measurement, as applicable) therefore still stands at the historical heads that produced it. Earlier rebase notes are history; where they say "this head", they mean the evidence commit named beside that run, not `ca9df7502`. The suite re-run already started at `9f5d17771`; because the diff and intersection meet the rule above, its result will carry to `ca9df7502`, but it is not claimed until it finishes. ## Testing **Tested:** Linux, NVIDIA RTX 4070 Ti, Vulkan 1.4, driver 620.73.04; windowed start from `assets/saves/kokiri-start`, `KokiriForest_Child`, `HOS_WINDOW_SIZE=1280x720`, `HOS_AUDIO=0`, `RX_VK_PASS_TIMING=1`, and a profile with **no** `output_res=` line at launch. The default drew 1920x1080 (`oe: output resolution 1920x1080 (none chosen: the window's, or the screen's where smaller)`, log sha256 `33e6d9a1d31bd23fb6687dab421f38e0be08f0b4931c8a3bc08f0e906d192622`) at 60.0 fps, `vk: 5.66 ms a frame in all`. The same build, window and save with `HOS_OUTPUT_RES=2560x1440` — main's answer on this 3840x2160 screen — drew 2560x1440 (`oe: output resolution 2560x1440`, log sha256 `dcfe3eafe9a42db20ffed78b37150ed317c1fde90e971cf0610ec749672793ec`) at 60.0 fps, `vk: 6.87 ms a frame in all`. Both runs are at `1084d099c`, the branch before its rebase. The rebased head `01881ab6e` has a byte-identical change diff (`sha256 797b6ed03343f5780e23e96a9e7dd7952e17ffccd0f62ccd060d33c8ba76f14b`), and the one base commit between them (`7eb53d1a0`) changes only `.forgejo/`, `builder/crates/` and `docs/user/common-issues.md`, none of the files this change touches, so the run describes this change's code. The PR's own test fails on `main` with the reason in the checklist below and passes at this head; that is the game-free check, not a substitute for the runs above. The suite at `01881ab6` ran: `832 passed, 3 failed, 8 skipped in 504 s`. Two failures are `main`'s — `bc_claim` undeclared in the display-startup cut (`host/hos_main.c:978`, fixed by `#2539`, not here) and `test_title_card_strips.py`'s `oot_patches` import. The third was this change's fixture: `tests/test_screensaver.py` cuts only `wndproc` out of `host/display.c`, and the new `publish_client_size` call in `WM_SIZE` had no declaration in the fixture, so it failed to compile under `-Werror`. The fixture now mocks it with the production signature — `WM_SIZE` is never sent, and the production call stays in the cut procedure — at `9f5d17771`, where the fixture passes. A suite re-run at `9f5d17771` is in progress; its result carries to `ca9df7502` under the empty-intersection rule above. **Still to test:** - Windows (llvm-mingw): build this head and run a windowed start on the GTX 1650 box, expecting the window-fitted default; the 34.6 → 44.6 fps figure below is an adjacent pair on the existing whole-pack build, not this branch on that box (by hand) - A full `mise run test`: the run at `01881ab6` had two `main` failures and the fixture defect above, now fixed; the re-run at `9f5d17771` is in progress and carries to `ca9df7502` under the empty-intersection rule (by hand, suite owner) - A main-vs-this screenshot pair at the same spot: the shots on disk are this build at the old and new defaults, not a `main` build (by hand) ## Measurements **Verdict:** On this PC the new default drew 1920x1080 where the old default drew 2560x1440 in the same window, and `vk: a frame in all` fell **6.87 → 5.66 ms** (−1.21 ms, −17.6 %) with **60.0 fps on both sides** (this PC is game-paced here, so the saving is not visible as fps). On a GTX 1650 the same choice measured **34.6 → 44.6 fps** in an adjacent pair at 720p against 1080p of output and an identical 3D size; that pair is an earlier measurement on the existing whole-pack build, **not** this branch on that box. Setup: Linux, NVIDIA RTX 4070 Ti, Vulkan 1.4, driver 620.73.04; `assets/saves/kokiri-start`, `KokiriForest_Child`, `HOS_WINDOW_SIZE=1280x720`, `HOS_AUDIO=0`, Auto (this PC) preset, no `output_res=` line at launch, `RX_VK_PASS_TIMING=1`. `vk: a frame in all` is the log's own mean of the timed command buffers in play. | | Before: main @ 7eb53d1a0 | After: this PR @ 1084d099c | |---|---|---| | Output resolution drawn | 2560x1440 | 1920x1080 | | `vk: a frame in all`, ms | 6.87 | 5.66 | | fps | 60.0 | 60.0 | Baseline: the Before column is this branch's build with `HOS_OUTPUT_RES=2560x1440`, which draws exactly main's default on this 3840x2160 screen (main's `hos_output_default` picks the game's 2560x1440); `main` was not rebuilt for the pair. The After commit is the head that ran; the rebased head `01881ab6e` has the byte-identical diff named under Testing. ## Risks - A smaller picture than the screen is a quality choice someone may not want: at the same window the default now draws fewer pixels. This is the whole point of the change and the reason to reject it if the maintainers disagree. It applies only when nobody asked. - A player-chosen `output_res=` line, `HOS_OUTPUT_RES`, or a picked row is drawn exactly as before, larger than the window when it says so (the Window scaling filter still scales it down). Existing installs have such a line, saved on their first start, so only a new install (no line) takes the new default. - A picture the Aspect ratio widens (21:9, 16:10, 4:3...) keeps the boot's size; it is not fitted to the window. Narrow or wide screens therefore behave as before. - A window that is never made (`HOS_HEADLESS=1`) answers 0 at once and keeps the screen's size; a window that is late is waited for up to 2 s, once. If that wait expires the screen's answer stands and the log says `(none chosen: the screen's, the window not made yet)`. - There is no switch to turn it off: a chosen `output_res=` line (or a revert) is the way back. No save, cache or `longshot_options.ini` key is renamed; a first start still saves its Output resolution, just the fitted one. ## Checklist ### Ready for review - [x] One topic, on current `main`; the title is a Conventional Commit. — Rebased head `ca9df7502` is directly on `main @ 8f7300756701b7c9a278e576bb075ac20e622a32`; the preserved diff is the single topic described in Summary. - [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). — the suite at `01881ab6` ran (`832 passed, 3 failed, 8 skipped`): two failures are `main`'s, the third was the screensaver fixture, fixed in `9f5d17771`; the re-run at `9f5d17771` is in progress and carries to `ca9df7502` only when it finishes. - [x] 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 fix: a game-free test that fails on `main` and passes here. — `tests/test_output_resolution.py` on `main` `7eb53d1a0` fails `host/hos_wide_size.h: the Output resolution none chose is worked out without the window it is shown in: a 720-high window on a 1080p screen draws 1920x1080 and scales it down` (exit 1); it passes at `01881ab6e`. - [x] A check under `tests/` that reads changed source is updated, not weakened. - [x] `MKWVK_API_VERSION` bumped (`MkwVkHost` or `MkwVkRenderer` in `gpu/vk/vk_api.h` changed). — 48 → 49 for `MkwVkHost.output_size`. - [ ] Host code builds on Windows (llvm-mingw) and Linux, with UTF-8 paths. — Linux built and ran here; Windows not built in this session, so the box stays unticked (the 1650 numbers are not this branch). - [ ] Screenshots of the same spot on `main` and here, for a change that shows on screen. — the shots on disk are this build at 2560x1440 and at the fitted 1920x1080, not a `main` build; a `main`-vs-here pair is owed. - [x] Docs updated. `docs/user/graphics-and-controls.md` lines 39 and 86, and the "size you pick is kept" sentence at line 43. - [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. — Merge gate: outstanding items remain in Still to test or are confirmed during review; this update does not tick it. - [ ] Tier 1 hardware it can affect is tested (docs/dev/standards.md, "Hardware tiers"). — Merge gate: platform coverage is settled during review; this update does not claim new hardware coverage. - [ ] Approved in review, every comment answered. — Awaiting reviewer approval and resolution of any review comments. - [ ] CI passes on the head; on current `main`, measured again or a comment says why the numbers still hold. — Awaiting CI on the current head; this update does not claim a CI run.
fix(host): the Output resolution none chose fits the window it is shown in
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website builds (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
PR description / Description follows the template (pull_request_target) Successful in 7s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
Guide screenshots / Guide images and local UI source review (pull_request) Has been cancelled
Third-party parts / As their notes say (pull_request) Has been cancelled
Third-party parts / The same as upstream (pull_request) Has been cancelled
Website / Website on Cloudflare (pull_request) Has been cancelled
Website / Website builds (pull_request) Has been cancelled
Website / Website preview, build (pull_request) Has been cancelled
Website / Website preview, upload (pull_request) Has been cancelled
01881ab6e7
A new install draws the game's 2560x1440 or, where the screen has fewer
pixels, the screen's size (host/hos_wide_size.h). The window is 1280x720
at 96 dpi, so a 1080p screen in a windowed start drew 1920x1080 and the
present scaled it down to the window: 2.1x the pixels for no more detail,
all of them drawn. Measured on a GTX 1650 at the same scene, 1280x720 of
output against 1920x1080 costs 18.64 ms against 25.31 ms of GPU time a
frame (+10 fps), and 720p is the closer to window-native picture.

The rule now takes the window's client area and fits the size none chose
into it, its shape kept, each side a whole multiple of 8 and at least the
game's 640x360. A size the player asked for is untouched: an output_res=
line or HOS_OUTPUT_RES still draws larger than the window when it says
so, and the Window scaling filter scales it down as before, which is the
sharpest picture the docs offer.

The host's default is asked before the window exists (host/hos_mem.c and
host/hos_main.c's boot, which work out the widescreen picture), so it is
recomputed at each ask until one has a window, and that answer is what
the run draws. A picture the Aspect ratio widens keeps the boot's size:
its width is the screen's shape's, worked out before there was a window,
and the game takes that size from hos_wide_out rather than from
hos_output_size.

The Insert menu's first start now takes the size the run drew
(MkwVkHost.output_size, version 49) instead of working the default out
again, so the row and the run cannot part.

Assisted-by: DeepSeek V4.1 Flash 1017 (opencode-go)
Author
Contributor

Tested in game: Linux (Arch), NVIDIA RTX 4070 Ti, Vulkan 1.4, driver 620.73.04: windowed start from kokiri-start in KokiriForest_Child with a profile carrying no output_res= line drew 1920x1080 in the window at 60.0 fps, 'vk: 5.66 ms a frame in all', against 6.87 ms with HOS_OUTPUT_RES=2560x1440 at the same window and scene (log sha256 33e6d9a1d31bd23fb6687dab421f38e0be08f0b4931c8a3bc08f0e906d192622 and dcfe3eafe9a42db20ffed78b37150ed317c1fde90e971cf0610ec749672793ec).

Tested in game: Linux (Arch), NVIDIA RTX 4070 Ti, Vulkan 1.4, driver 620.73.04: windowed start from kokiri-start in KokiriForest_Child with a profile carrying no output_res= line drew 1920x1080 in the window at 60.0 fps, 'vk: 5.66 ms a frame in all', against 6.87 ms with HOS_OUTPUT_RES=2560x1440 at the same window and scene (log sha256 33e6d9a1d31bd23fb6687dab421f38e0be08f0b4931c8a3bc08f0e906d192622 and dcfe3eafe9a42db20ffed78b37150ed317c1fde90e971cf0610ec749672793ec).
Member

Possibly related, for context:

  • PR #142 feat(video): a Window choice that fills the actual window, Hor+ and Vert+ — Window aspect-ratio mode overlaps startup window-size logic
Possibly related, for context: - PR #142 feat(video): a Window choice that fills the actual window, Hor+ and Vert+ — Window aspect-ratio mode overlaps startup window-size logic
Author
Contributor

Suite at 01881ab6e76baba30c02779a00f925c0f4e83f7f: 832 passed, 3 failed, 8 skipped in 504 s (linux, 5 at once), exit 1; log prrefresh-logs/suite-2542-01881ab6.log, sha256 ec0dcf0108af81ac2d117b65f4884e588ca094780782376d8fa36e288cb17e67, .head = that sha.

FAIL under Amendment 2 — one failing id is not a base failure:

tests/test_screensaver.py
…/longshot-screensaver-saaj2mn_/fixture.c:337:9: error: implicit declaration of function ‘publish_client_size’ [-Wimplicit-function-declaration]

publish_client_size is added by this branch (host/display.c:48, host/posix/display_sdl.c:75; no hit anywhere at be663a08a), and the screensaver fixture does not declare it, so the fixture does not build at this head. Base check in a clean be663a08a worktree: 1 passed, 0 failed, 0 skipped (prrefresh-logs/base-be663a08a-screensaver.log, sha256 ff1e4d265dfe5d03c2b97ecb5113593cab4bd4ce45a7440b8746674fd3e8585e). So this id passes at the base and fails at the head — the change's defect, not main's.

The other two are the known base pair and exempt: tests/test_display_startup_failure.py (bc_claim; the generated line shifted 82→83 because this branch inserts a line into the cut source, same class) and tests/test_title_card_strips.py (oot_patches).

Stays WIP until the fixture declaration is fixed; suite to be re-run at the new head.

Suite at `01881ab6e76baba30c02779a00f925c0f4e83f7f`: **832 passed, 3 failed, 8 skipped in 504 s (linux, 5 at once)**, exit 1; log `prrefresh-logs/suite-2542-01881ab6.log`, sha256 `ec0dcf0108af81ac2d117b65f4884e588ca094780782376d8fa36e288cb17e67`, `.head` = that sha. **FAIL under Amendment 2 — one failing id is not a base failure:** ``` tests/test_screensaver.py …/longshot-screensaver-saaj2mn_/fixture.c:337:9: error: implicit declaration of function ‘publish_client_size’ [-Wimplicit-function-declaration] ``` `publish_client_size` is added by this branch (`host/display.c:48`, `host/posix/display_sdl.c:75`; no hit anywhere at `be663a08a`), and the screensaver fixture does not declare it, so the fixture does not build at this head. Base check in a clean `be663a08a` worktree: `1 passed, 0 failed, 0 skipped` (`prrefresh-logs/base-be663a08a-screensaver.log`, sha256 `ff1e4d265dfe5d03c2b97ecb5113593cab4bd4ce45a7440b8746674fd3e8585e`). So this id passes at the base and fails at the head — the change's defect, not `main`'s. The other two are the known base pair and exempt: `tests/test_display_startup_failure.py` (`bc_claim`; the generated line shifted 82→83 because this branch inserts a line into the cut source, same class) and `tests/test_title_card_strips.py` (`oot_patches`). Stays WIP until the fixture declaration is fixed; suite to be re-run at the new head.
test(display): the screensaver fixture mocks the window-size publication
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 20s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
9f5d177710
host/display.c's wndproc now calls publish_client_size in WM_SIZE, but
tests/test_screensaver.py cuts only wndproc out of that file, so the
fixture had no declaration and failed to compile under -Werror.

The fixture mocks it with the production signature, as it mocks every
other Win32-facing call it does not exercise; WM_SIZE is never sent, so
the branch must not run. The production call stays in the cut procedure:
the test still compiles the complete window procedure, not a stub of it.

Assisted-by: DeepSeek V4.1 Flash 1017 (opencode-go)
dazemc force-pushed fix/output-window-default from 9f5d177710
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
Website / Website on Cloudflare (pull_request) Blocked by required conditions
Website / Website builds (pull_request) Blocked by required conditions
Website / Website preview, build (pull_request) Blocked by required conditions
Website / Website preview, upload (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 20s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to ca9df75026
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 10s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-11-25 17:54:52 +00:00
Compare
Author
Contributor

Rebased 9f5d17771 to ca9df7502 on main 8f7300756; patch-id unchanged and intersection empty. Existing evidence stands; suite at old head still running, Windows and screenshot boxes remain unticked. Removed distro branding.

Rebased 9f5d17771 to ca9df7502 on main 8f7300756; patch-id unchanged and intersection empty. Existing evidence stands; suite at old head still running, Windows and screenshot boxes remain unticked. Removed distro branding.
Owner
@rebase
Member

I rebased this pull request onto main (404c7ed3e9): the new head is 3677731c05.

Conflicts resolved

  • host/display.c: Publishes the intended fullscreen monitor size before the hidden window is revealed, then resumes publishing its actual client size.
  • host/posix/display_sdl.c: Publishes the intended fullscreen monitor size during launcher startup and resumes publishing the drawable size after reveal.

Nothing was built or run: read the resolution before merging.


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

I rebased this pull request onto `main` (404c7ed3e92c): the new head is 3677731c055f. **Conflicts resolved** - host/display.c: Publishes the intended fullscreen monitor size before the hidden window is revealed, then resumes publishing its actual client size. - host/posix/display_sdl.c: Publishes the intended fullscreen monitor size during launcher startup and resumes publishing the drawable size after reveal. Nothing was built or run: read the resolution before merging. --- <sub>Automated rebase by BeanBot (gpt-6.1-terra), asked for by HumanBean. Nothing was run; a maintainer decides.</sub>
BeanBot force-pushed fix/output-window-default from ca9df75026
Some checks failed
Website / Website on Cloudflare (pull_request_target) Has been skipped
Website / Website preview, build (pull_request_target) Has been skipped
Website / Website preview, upload (pull_request_target) Has been skipped
Guide screenshots / Guide images and local UI source review (pull_request) Blocked by required conditions
Third-party parts / As their notes say (pull_request) Blocked by required conditions
Third-party parts / The same as upstream (pull_request) Blocked by required conditions
PR description / Description follows the template (pull_request_target) Successful in 10s
CI / Conventional Commit title (pull_request) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test) (pull_request) Has been cancelled
CI / longshot-builder end to end (synthetic game) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 3/4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 4/4) (pull_request) Has been cancelled
CI / SPIR-V fixtures (global narrow load/store, direct surface atomics, F2I immediate) (pull_request) Has been cancelled
CI / Workflow lint (actionlint) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 3677731c05
Some checks failed
PR description / Title and description (pull_request_target) Successful in 12s
CI / What the change needs (pull_request) Successful in 14s
CI / Third-party parts and guide screenshots (pull_request) Failing after 16s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 4m10s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m9s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m41s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m49s
CI / Website build and checks (pull_request) Successful in 1m33s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 29m34s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m26s
2026-11-28 04:45:59 +00:00
Compare
Owner
@review
BeanBot left a comment

Recommendation: Request changes. The new host-to-menu handoff can save the wrong resolution or persist a temporary environment override. The window-size publication also permits inconsistent dimensions across threads.

The change fits an unchosen output resolution to the initial window, reducing pixels rendered for a new windowed install. It adds cross-thread startup coordination and changes what the menu saves, with correctness problems in those paths.

Blocking (2): must change before merging.

  1. L1 gpu/vk/vk_menu.cpp:4367: The host callback returns the game's base dimensions for the reduced output mode, not the output resolution the menu must save. (more on the line) Do: Expose the selected output resolution separately from the base dimensions used by the game's scaling patch, and save 2048x1152 for the reduced mode. Exercise the actual menu initialization for this case.
  2. L2 gpu/vk/vk_menu.cpp:4367: The initial saved menu value now incorporates HOS_OUTPUT_RES before the environment override is applied. (more on the line) Do: Initialize the saved choice from the unoverridden default, and apply HOS_OUTPUT_RES only through env_override. Add a first-start test that removes the override on the next launch.

Should fix (2): not blocking, but worth doing before merging.

  • L3 host/posix/display_sdl.c:88: Width and height are published independently, and the reader treats them as one window size. (more on the line) Do: Publish and read the dimensions as one atomic snapshot or protect the pair with a lock, including the fullscreen publication on both platforms.
  • L4 host/nn_applet.c:220: output_px is read outside the lock while another thread can write it; volatile does not make that access atomic or synchronize it. (more on the line) Do: Return the requested dimension while holding output_lock, or use a properly synchronized atomic snapshot and keep the mode and dimensions in the same snapshot.

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

  • L5: The claimed performance gain and the visual tradeoff need a comparable base-versus-PR run. When: The reported 6.87 to 5.66 ms pair uses the PR build for both sides and gives no repeated-run spread, frame-time lows, or comparison of the resulting image against the base. Do: Run at least two interleaved, warmed-up runs per side against the base in the same scene and settings; report frame times and 1% lows, and compare screenshots at the same spot.
  • L6: The changed platform and display-startup paths need coverage beyond the supplied Linux NVIDIA run. When: Windows fullscreen and windowed startup and Linux AMD or Steam Deck startup use affected paths, but the PR reports no runs of this branch on those systems. Do: Build and run the first-start windowed and fullscreen cases on Windows and the affected Tier 1 Linux hardware, checking the drawn and saved resolutions.

@fix can do L1, L2, L3 and L4.

Checks: Still running: PR description / Title and description (pull_request_target).

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

Does it help: Unproven. The reported Linux run reduced mean Vulkan command-buffer time from 6.87 to 5.66 ms at 60 fps, but used one run per setting in the PR build rather than repeated interleaved runs against the base. The GTX 1650 result was not measured on this branch.

Other systems: The host change affects Windows and Linux startup, fullscreen and windowed modes, the menu's saved settings, and render-target sizing. The supplied game run covers Linux on NVIDIA; Windows, AMD and Steam Deck coverage and a base-versus-PR image comparison remain outstanding.

Switches: No switches added, changed or removed. HOS_OUTPUT_RES remains a temporary override, but its value can now be saved on a first start.

Reviewed: 3677731c05 against 404c7ed3e9: Read the repository rules, PR template, standards, commit log and diff; inspected the changed resolution logic, menu initialization, display publication and their startup callers. Skimmed the remaining changed fixtures and documentation. The full contents of every changed code file and all dependent readers were not read.; nothing run (a code review).

Checked and fine:

  • The renderer interface version is bumped from 48 to 49.
  • Both commits include AI-assistance trailers.
  • The diff adds no game-derived files or generated shader files.

Testing: No commands that build, test or run project code were executed. The reported Linux game run and historical suite results were considered as evidence; the current suite and Windows run remain outstanding.

Overlaps and merge order: Not checked; network access is unavailable.


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

**Recommendation: Request changes.** The new host-to-menu handoff can save the wrong resolution or persist a temporary environment override. The window-size publication also permits inconsistent dimensions across threads. The change fits an unchosen output resolution to the initial window, reducing pixels rendered for a new windowed install. It adds cross-thread startup coordination and changes what the menu saves, with correctness problems in those paths. **Blocking (2)**: must change before merging. 1. **L1** `gpu/vk/vk_menu.cpp:4367`: The host callback returns the game's base dimensions for the reduced output mode, not the output resolution the menu must save. (more on the line) **Do:** Expose the selected output resolution separately from the base dimensions used by the game's scaling patch, and save 2048x1152 for the reduced mode. Exercise the actual menu initialization for this case. 2. **L2** `gpu/vk/vk_menu.cpp:4367`: The initial saved menu value now incorporates HOS_OUTPUT_RES before the environment override is applied. (more on the line) **Do:** Initialize the saved choice from the unoverridden default, and apply HOS_OUTPUT_RES only through env_override. Add a first-start test that removes the override on the next launch. **Should fix (2)**: not blocking, but worth doing before merging. - **L3** `host/posix/display_sdl.c:88`: Width and height are published independently, and the reader treats them as one window size. (more on the line) **Do:** Publish and read the dimensions as one atomic snapshot or protect the pair with a lock, including the fullscreen publication on both platforms. - **L4** `host/nn_applet.c:220`: output_px is read outside the lock while another thread can write it; volatile does not make that access atomic or synchronize it. (more on the line) **Do:** Return the requested dimension while holding output_lock, or use a properly synchronized atomic snapshot and keep the mode and dimensions in the same snapshot. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L5**: The claimed performance gain and the visual tradeoff need a comparable base-versus-PR run. *When:* The reported 6.87 to 5.66 ms pair uses the PR build for both sides and gives no repeated-run spread, frame-time lows, or comparison of the resulting image against the base. **Do:** Run at least two interleaved, warmed-up runs per side against the base in the same scene and settings; report frame times and 1% lows, and compare screenshots at the same spot. - **L6**: The changed platform and display-startup paths need coverage beyond the supplied Linux NVIDIA run. *When:* Windows fullscreen and windowed startup and Linux AMD or Steam Deck startup use affected paths, but the PR reports no runs of this branch on those systems. **Do:** Build and run the first-start windowed and fullscreen cases on Windows and the affected Tier 1 Linux hardware, checking the drawn and saved resolutions. `@fix` can do L1, L2, L3 and L4. **Checks:** Still running: `PR description / Title and description (pull_request_target)`. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Unproven. The reported Linux run reduced mean Vulkan command-buffer time from 6.87 to 5.66 ms at 60 fps, but used one run per setting in the PR build rather than repeated interleaved runs against the base. The GTX 1650 result was not measured on this branch. **Other systems:** The host change affects Windows and Linux startup, fullscreen and windowed modes, the menu's saved settings, and render-target sizing. The supplied game run covers Linux on NVIDIA; Windows, AMD and Steam Deck coverage and a base-versus-PR image comparison remain outstanding. **Switches:** No switches added, changed or removed. HOS_OUTPUT_RES remains a temporary override, but its value can now be saved on a first start. **Reviewed:** 3677731c055f against 404c7ed3e92c: Read the repository rules, PR template, standards, commit log and diff; inspected the changed resolution logic, menu initialization, display publication and their startup callers. Skimmed the remaining changed fixtures and documentation. The full contents of every changed code file and all dependent readers were not read.; nothing run (a code review). **Checked and fine:** - The renderer interface version is bumped from 48 to 49. - Both commits include AI-assistance trailers. - The diff adds no game-derived files or generated shader files. **Testing:** No commands that build, test or run project code were executed. The reported Linux game run and historical suite results were considered as evidence; the current suite and Windows run remain outstanding. **Overlaps and merge order:** Not checked; network access is unavailable. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by BeanBot, after its rebase. Nothing was run; a maintainer decides.</sub>
@ -4366,0 +4364,4 @@
// Aspect ratio widens keeps the boot's size, which the host alone knows. Saved from now on, so the two never part.
// HOS_OUTPUT_RES, below, is over it, as over a chosen one. Where the host cannot say, the screen's answer, as it took it)
uint32_t w = 0, h = 0;
if (!(host && host->output_size && host->output_size(&w, &h) && w && h)) {
Member

L1 (blocking): The host callback returns the game's base dimensions for the reduced output mode, not the output resolution the menu must save.

When: On a first start where the default is 2048x1152, output_mode clears output_w and output_h to select the game's 0.8 graphics scale. hos_output_size then returns 2560x1440, so the menu saves 2560x1440 even though this run draws 2048x1152; the next launch changes resolution.

Do: Expose the selected output resolution separately from the base dimensions used by the game's scaling patch, and save 2048x1152 for the reduced mode. Exercise the actual menu initialization for this case.

**L1** (blocking): The host callback returns the game's base dimensions for the reduced output mode, not the output resolution the menu must save. *When:* On a first start where the default is 2048x1152, output_mode clears output_w and output_h to select the game's 0.8 graphics scale. hos_output_size then returns 2560x1440, so the menu saves 2560x1440 even though this run draws 2048x1152; the next launch changes resolution. **Do:** Expose the selected output resolution separately from the base dimensions used by the game's scaling patch, and save 2048x1152 for the reduced mode. Exercise the actual menu initialization for this case.
Member

L2 (blocking): The initial saved menu value now incorporates HOS_OUTPUT_RES before the environment override is applied.

When: With no output_res line and HOS_OUTPUT_RES=1920x1080, host_output_size returns that override as the initial opts.output_res. The later env_override therefore retains 1920x1080 as the underlying saved value, so a temporary override becomes the persistent choice on subsequent launches.

Do: Initialize the saved choice from the unoverridden default, and apply HOS_OUTPUT_RES only through env_override. Add a first-start test that removes the override on the next launch.

**L2** (blocking): The initial saved menu value now incorporates HOS_OUTPUT_RES before the environment override is applied. *When:* With no output_res line and HOS_OUTPUT_RES=1920x1080, host_output_size returns that override as the initial opts.output_res. The later env_override therefore retains 1920x1080 as the underlying saved value, so a temporary override becomes the persistent choice on subsequent launches. **Do:** Initialize the saved choice from the unoverridden default, and apply HOS_OUTPUT_RES only through env_override. Add a first-start test that removes the override on the next launch.
@ -188,3 +218,3 @@
uint32_t hos_output_size(int height) {
if (!output_mode()) return height ? 1440 : 2560;
return height ? output_h : output_w;
const uint64_t px = output_px; /* (one read: a size, never two halves) */
Member

L4 (should fix): output_px is read outside the lock while another thread can write it; volatile does not make that access atomic or synchronize it.

When: When the window has not arrived, or a widescreen picture keeps output_settled false, concurrent game and menu calls can enter output_mode in succession and write output_px while another caller reads it after releasing the lock. This is a data race and can return an inconsistent output size.

Do: Return the requested dimension while holding output_lock, or use a properly synchronized atomic snapshot and keep the mode and dimensions in the same snapshot.

**L4** (should fix): output_px is read outside the lock while another thread can write it; volatile does not make that access atomic or synchronize it. *When:* When the window has not arrived, or a widescreen picture keeps output_settled false, concurrent game and menu calls can enter output_mode in succession and write output_px while another caller reads it after releasing the lock. This is a data race and can return an inconsistent output size. **Do:** Return the requested dimension while holding output_lock, or use a properly synchronized atomic snapshot and keep the mode and dimensions in the same snapshot.
@ -76,0 +85,4 @@
int w = 0, h = 0;
if (client_fullscreen_pending) return;
hos_pointer_size(&pointer, &w, &h);
if (w > 0 && h > 0) __atomic_store_n(&client_w, w, __ATOMIC_RELAXED), __atomic_store_n(&client_h, h, __ATOMIC_RELAXED);
Member

L3 (should fix): Width and height are published independently, and the reader treats them as one window size. The Windows implementation has the same issue.

When: If a resize publishes a new width while output_mode reads before the new height is published, it can settle and save a combination of the new width and old height. That can choose an output larger or smaller than the actual window for the entire run and later launches.

Do: Publish and read the dimensions as one atomic snapshot or protect the pair with a lock, including the fullscreen publication on both platforms.

**L3** (should fix): Width and height are published independently, and the reader treats them as one window size. The Windows implementation has the same issue. *When:* If a resize publishes a new width while output_mode reads before the new height is published, it can settle and save a combination of the new width and old height. That can choose an output larger or smaller than the actual window for the entire run and later launches. **Do:** Publish and read the dimensions as one atomic snapshot or protect the pair with a lock, including the fullscreen publication on both platforms.
Some checks failed
PR description / Title and description (pull_request_target) Successful in 12s
CI / What the change needs (pull_request) Successful in 14s
CI / Third-party parts and guide screenshots (pull_request) Failing after 16s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 13s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 4m10s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Successful in 2m9s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m41s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 5m49s
CI / Website build and checks (pull_request) Successful in 1m33s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 29m34s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 42m26s
This pull request has changes conflicting with the target branch.
  • docs/user/graphics-and-controls.md
  • gpu/vk/vk_api.h
  • gpu/vk/vk_menu.cpp
  • host/display.c
  • host/hos_wide_size.h
  • host/nn_applet.c
  • host/rx_backend.c
  • tests/display_startup_failure_test.cpp
  • tests/test_output_resolution.py
Some workflows are waiting to be reviewed.
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u 'fix/output-window-default:dazemc-fix/output-window-default'
git switch 'dazemc-fix/output-window-default'
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
3 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!2542
No description provided.