feat(widescreen): a screen narrower than 16:9 shows more above and below, not less at the sides #3142

Merged
HumanBean merged 4 commits from llun/Longshot:feat/tall-screens-show-more into main 2026-12-04 01:36:26 +00:00
Member

Summary

On a screen narrower than 16:9 (16:10 such as the Steam Deck, 4:3), the game cut off the sides of the picture. Wider screens already showed more at the sides. Now every shape shows the whole 16:9 view and adds to it: more at the sides on a wider screen, as before, and more above and below on a narrower one.

The rule comes from Metal Goose Solid on the Discord server: a screen that isn't 16:9 should always add to the picture, never crop it, and Field of view should mean the same on every screen.

  • 16:9 and wider: the camera's angle is not changed.
  • Narrower: the angle is opened so that the 16:9 view's width is kept. This covers gameplay, conversations and cutscenes.
  • Field of view sets what the 16:9 part of the picture shows, so a value means the same on every screen. Lower it for a closer view in gameplay. At 16:10, 90% is close to the older view; by calculation, 75% is at 4:3. Cutscenes and conversations keep the taller view.
  • There is no new setting. The HUD keeps its size and its places at the screen's edges.
  • Mods: camera.state().fov and an override's fov are the 16:9 view's. The projection of a world point now uses the picture's real shape. Before, it always used 16:9, because nothing called the function that sets the shape (it is removed).
  • Aspect ratio's help text for a narrower shape is updated, with its 13 translations. They are written with AI help and not checked by native speakers.

How: the core's lens callback at camera.lens opens the angle last, for every camera whose own ratio is 16:9. The game makes its projection after that, so what it hides is opened together with what it draws. The camera's wall check reads the camera's own angle, so it is not changed.

Read first: game/crates/game-core/src/camera/lens.rs, game/mods/widescreen/src/system_mod.rs, game/crates/api/src/services/camera.rs.

#142 (open) does this in an opt-in Window mode; this is the rule for the picture's shape as main sets it. See #1399: a player's stretched picture at 16:10. A 1280x800 window was not stretched here, so that report stays unexplained.

Testing

Tested: Windows 11, RTX 5080, driver 621.47, in the game:

  • Castle Town's gate at 16:9, 16:10, 4:3 and 21:9, on 7c06402bd (main 68fc87175). 16:10 and 4:3 show 16:9's width and more above and below. The hearts and the minimap are in the screen's corners.
  • On an earlier head (main 6318f4056), laid over 16:9 at the same width: Link, the guard and the buildings are the same size at 16:10 and 4:3.
  • Also there (main 6318f4056): a 1280x800 window is filled with no bars and no stretching. The first visit to the Market (a cutscene) has 16:9's framing at 16:10 and more above and below. The area title's frame reaches the edges. A speech bubble is by its speaker's head. Conversation, targeting, the pause menu and the map screen's frame are right.
  • A temporary log line (removed) on that head found no other 16:9 camera in play that the lens site does not reach, at 16:10 and 4:3.
  • dev.py smoke passes on 7c06402bd.

The branch is on main 299ed5b70 (a7901114b). The three changes on main since the last game run (#3140, #3122, #3139) touch none of this PR's files, so the game was not rebuilt. That run was on main f536e7d06 (75d95d78e): dev.py smoke passes, and in Hyrule Field at 16:10 and 4:3, standing and walking, nothing is missing at the top or bottom edge. The camera was not turned: the control bridge's right stick did not move it.

Checks:

  • All of mise run test on main 6318f4056 but three checks: 837 run, 836 pass. test_run_all_junit failed there because it runs test_utf8_paths, which failed on that main. Not run, as they fail on that main: test_cursor_hidden_linux, test_utf8_paths, test_lifter.
  • Instead of test_lifter: the tests of game-core, api, sysmod-widescreen, game-sites, site-table and modtool on that main, and clippy of the first three, pass. Left out: api's a_walked_reshade_folder_counts_a_change_once_two_walks_agree and modtool's a_mod_written_off_the_first_time_..., which fail on main.
  • That run had main's Windows compile error (since fixed by #3124) fixed locally; the fix is not in this PR.
  • On 7c06402bd: the tests of game-core, api and sysmod-widescreen pass but that same api test, and nine checks pass, test_utf8_paths among them.
  • On main bfc722504: the tests of game-core and sysmod-widescreen, and test_i18n_complete, test_game_fov and test_widescreen_shapes, pass.
  • On 75d95d78e (main f536e7d06): api's camera tests pass, the new a_projected_point_is_where_the_games_lens_draws_it among them.
  • On this head (a7901114b, main 299ed5b70): the tests of game-core, api and sysmod-widescreen pass but the same api test that fails on main, and test_i18n_complete, test_game_fov, test_widescreen_shapes, test_doc_anchors and test_guide_screenshots pass.
  • cargo fmt finds nothing in this PR's files.

Still to test:

  • Linux or a Steam Deck at 1280x800: Castle Town's gate, a conversation and a cutscene, expecting a full picture, not stretched, with more above and below than on main (by hand)
  • A 4:3 screen: the same (by hand)
  • 16:10, grass and far objects: turn the camera all the way round and up and down in Hyrule Field, expecting nothing to pop in at the top or bottom edge (by hand)
  • 16:10, aiming with the slingshot or the bow, expecting the aim at the middle of the picture (by hand)

Measurements

Verdict: no measured cost: at 16:10 the two views are within the spread.

Baseline: this build at Field of view 90%, which draws nearly what main draws at 16:10 (by calculation, 1% closer). It stands in for main, which was not measured.

Setup: Windows 11, RTX 5080, driver 621.47; Hyrule Field as a child, 16:10, the 3D at 67%, uncapped, headless; dev.py ab, 45 s each after a warm-up, two interleaved pairs (A1, B1, A2, B2), this branch at e07c2aa7c on main 674489ddf

run 1 / run 2 Before: this PR @ e07c2aa7c, Field of view 90% After: this PR @ e07c2aa7c, Field of view 100%
fps 160.1 / 154.8 159.0 / 155.4
median frame time 6.16 / 6.30 ms 6.22 / 6.34 ms
p99 frame time 8.66 / 9.35 ms 8.24 / 8.76 ms
1% low 115.5 / 107.0 fps 121.4 / 114.1 fps

dev.py ab made no write-up of its own (exit 3): it compares the runs' environment, and LONGSHOT_BUILDER_PIPES and LONGSHOT_CRASH_BLOCK hold handle numbers that differ in every run. Its lines:

A1: 7204 frames in 45 s, 160.1 fps, median 6.16 ms, p99 8.66 ms, 1% low 115.5 fps, 0 cold frames
B1: 7157 frames in 45 s, 159.0 fps, median 6.22 ms, p99 8.24 ms, 1% low 121.4 fps, 0 cold frames
A2: 6969 frames in 45 s, 154.8 fps, median 6.30 ms, p99 9.35 ms, 1% low 107.0 fps, 0 cold frames
B2: 6993 frames in 45 s, 155.4 fps, median 6.34 ms, p99 8.76 ms, 1% low 114.1 fps, 0 cold frames

At 16:9 and wider the angle is the game's own, bit for bit (a_picture_of_any_shape_shows_the_whole_16_9_frame).

Risks

  • Players at 16:10 and 4:3 notice a wider view after updating. At the same screen height, Link looks about 10% smaller at 16:10 and 25% smaller at 4:3. There is no switch back: Field of view gets close in gameplay only.
  • Cutscenes show space above and below that they did not show before, so something staged out of view could be seen. One cutscene was checked.
  • The HUD is sized by the screen's height, as before, so it looks larger next to Link.
  • A mod whose own camera sets fov shows more above and below on a narrower screen. A mod's marker over the world moves to its right place on a screen that is not 16:9.
  • Saves, settings and caches are not changed. A revert is enough.

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

  • Screenshots of the same spot on main and here, for a change that shows on screen.
  • 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 On a screen narrower than 16:9 (16:10 such as the Steam Deck, 4:3), the game cut off the sides of the picture. Wider screens already showed more at the sides. Now every shape shows the whole 16:9 view and adds to it: more at the sides on a wider screen, as before, and more above and below on a narrower one. The rule comes from **Metal Goose Solid** on the Discord server: a screen that isn't 16:9 should always add to the picture, never crop it, and Field of view should mean the same on every screen. - 16:9 and wider: the camera's angle is not changed. - Narrower: the angle is opened so that the 16:9 view's width is kept. This covers gameplay, conversations and cutscenes. - Field of view sets what the 16:9 part of the picture shows, so a value means the same on every screen. Lower it for a closer view in gameplay. At 16:10, 90% is close to the older view; by calculation, 75% is at 4:3. Cutscenes and conversations keep the taller view. - There is no new setting. The HUD keeps its size and its places at the screen's edges. - Mods: `camera.state().fov` and an override's `fov` are the 16:9 view's. The projection of a world point now uses the picture's real shape. Before, it always used 16:9, because nothing called the function that sets the shape (it is removed). - Aspect ratio's help text for a narrower shape is updated, with its 13 translations. They are written with AI help and not checked by native speakers. How: the core's lens callback at `camera.lens` opens the angle last, for every camera whose own ratio is 16:9. The game makes its projection after that, so what it hides is opened together with what it draws. The camera's wall check reads the camera's own angle, so it is not changed. Read first: `game/crates/game-core/src/camera/lens.rs`, `game/mods/widescreen/src/system_mod.rs`, `game/crates/api/src/services/camera.rs`. #142 (open) does this in an opt-in Window mode; this is the rule for the picture's shape as `main` sets it. See #1399: a player's stretched picture at 16:10. A 1280x800 window was not stretched here, so that report stays unexplained. ## Testing **Tested:** Windows 11, RTX 5080, driver 621.47, in the game: - Castle Town's gate at 16:9, 16:10, 4:3 and 21:9, on 7c06402bd (main 68fc87175). 16:10 and 4:3 show 16:9's width and more above and below. The hearts and the minimap are in the screen's corners. - On an earlier head (main 6318f4056), laid over 16:9 at the same width: Link, the guard and the buildings are the same size at 16:10 and 4:3. - Also there (main 6318f4056): a 1280x800 window is filled with no bars and no stretching. The first visit to the Market (a cutscene) has 16:9's framing at 16:10 and more above and below. The area title's frame reaches the edges. A speech bubble is by its speaker's head. Conversation, targeting, the pause menu and the map screen's frame are right. - A temporary log line (removed) on that head found no other 16:9 camera in play that the lens site does not reach, at 16:10 and 4:3. - `dev.py smoke` passes on 7c06402bd. The branch is on main 299ed5b70 (a7901114b). The three changes on `main` since the last game run (#3140, #3122, #3139) touch none of this PR's files, so the game was not rebuilt. That run was on main f536e7d06 (75d95d78e): `dev.py smoke` passes, and in Hyrule Field at 16:10 and 4:3, standing and walking, nothing is missing at the top or bottom edge. The camera was not turned: the control bridge's right stick did not move it. Checks: - All of `mise run test` on main 6318f4056 but three checks: 837 run, 836 pass. `test_run_all_junit` failed there because it runs `test_utf8_paths`, which failed on that main. Not run, as they fail on that main: `test_cursor_hidden_linux`, `test_utf8_paths`, `test_lifter`. - Instead of `test_lifter`: the tests of `game-core`, `api`, `sysmod-widescreen`, `game-sites`, `site-table` and `modtool` on that main, and clippy of the first three, pass. Left out: `api`'s `a_walked_reshade_folder_counts_a_change_once_two_walks_agree` and `modtool`'s `a_mod_written_off_the_first_time_...`, which fail on `main`. - That run had `main`'s Windows compile error (since fixed by #3124) fixed locally; the fix is not in this PR. - On 7c06402bd: the tests of `game-core`, `api` and `sysmod-widescreen` pass but that same `api` test, and nine checks pass, `test_utf8_paths` among them. - On main bfc722504: the tests of `game-core` and `sysmod-widescreen`, and `test_i18n_complete`, `test_game_fov` and `test_widescreen_shapes`, pass. - On 75d95d78e (main f536e7d06): `api`'s camera tests pass, the new `a_projected_point_is_where_the_games_lens_draws_it` among them. - On this head (a7901114b, main 299ed5b70): the tests of `game-core`, `api` and `sysmod-widescreen` pass but the same `api` test that fails on `main`, and `test_i18n_complete`, `test_game_fov`, `test_widescreen_shapes`, `test_doc_anchors` and `test_guide_screenshots` pass. - `cargo fmt` finds nothing in this PR's files. **Still to test:** - Linux or a Steam Deck at 1280x800: Castle Town's gate, a conversation and a cutscene, expecting a full picture, not stretched, with more above and below than on `main` (by hand) - A 4:3 screen: the same (by hand) - 16:10, grass and far objects: turn the camera all the way round and up and down in Hyrule Field, expecting nothing to pop in at the top or bottom edge (by hand) - 16:10, aiming with the slingshot or the bow, expecting the aim at the middle of the picture (by hand) ## Measurements **Verdict:** no measured cost: at 16:10 the two views are within the spread. Baseline: this build at Field of view 90%, which draws nearly what `main` draws at 16:10 (by calculation, 1% closer). It stands in for `main`, which was not measured. Setup: Windows 11, RTX 5080, driver 621.47; Hyrule Field as a child, 16:10, the 3D at 67%, uncapped, headless; `dev.py ab`, 45 s each after a warm-up, two interleaved pairs (A1, B1, A2, B2), this branch at e07c2aa7c on main 674489ddf | run 1 / run 2 | Before: this PR @ e07c2aa7c, Field of view 90% | After: this PR @ e07c2aa7c, Field of view 100% | |---|---|---| | fps | 160.1 / 154.8 | 159.0 / 155.4 | | median frame time | 6.16 / 6.30 ms | 6.22 / 6.34 ms | | p99 frame time | 8.66 / 9.35 ms | 8.24 / 8.76 ms | | 1% low | 115.5 / 107.0 fps | 121.4 / 114.1 fps | `dev.py ab` made no write-up of its own (exit 3): it compares the runs' environment, and `LONGSHOT_BUILDER_PIPES` and `LONGSHOT_CRASH_BLOCK` hold handle numbers that differ in every run. Its lines: ``` A1: 7204 frames in 45 s, 160.1 fps, median 6.16 ms, p99 8.66 ms, 1% low 115.5 fps, 0 cold frames B1: 7157 frames in 45 s, 159.0 fps, median 6.22 ms, p99 8.24 ms, 1% low 121.4 fps, 0 cold frames A2: 6969 frames in 45 s, 154.8 fps, median 6.30 ms, p99 9.35 ms, 1% low 107.0 fps, 0 cold frames B2: 6993 frames in 45 s, 155.4 fps, median 6.34 ms, p99 8.76 ms, 1% low 114.1 fps, 0 cold frames ``` At 16:9 and wider the angle is the game's own, bit for bit (`a_picture_of_any_shape_shows_the_whole_16_9_frame`). ## Risks - Players at 16:10 and 4:3 notice a wider view after updating. At the same screen height, Link looks about 10% smaller at 16:10 and 25% smaller at 4:3. There is no switch back: Field of view gets close in gameplay only. - Cutscenes show space above and below that they did not show before, so something staged out of view could be seen. One cutscene was checked. - The HUD is sized by the screen's height, as before, so it looks larger next to Link. - A mod whose own camera sets `fov` shows more above and below on a narrower screen. A mod's marker over the world moves to its right place on a screen that is not 16:9. - Saves, settings and caches are not changed. A revert is enough. ## 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. - [x] `mise run test` passes (any failure that also fails on `main` is named). - [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] Screenshots of the same spot on `main` and here, for a change that shows on screen. - [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)
A picture of another shape always shows the whole 16:9 frame and adds to it: more at the sides on a wider screen (as
before), more above and below on 16:10 and 4:3. Field of view says what the 16:9 frame shows, so a value means the same
on every screen. Cutscenes follow the same rule.

The rule is Metal Goose Solid's, from the Discord server.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs(modding): the camera page's lines wrapped
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
d4653f2f93
Author
Member

Tested in game: Windows 11, RTX 5080, driver 621.47. Played at Castle Town's gate at 16:9, 16:10, 4:3 and 21:9: 16:10 and 4:3 show 16:9's full width and more above and below, with the HUD in the corners (7c06402bd, on main 68fc87175). On an earlier head (main 6318f4056): a 1280x800 window, a cutscene, a conversation, targeting, a speech bubble and the pause menu at 16:10 all looked right.

Tested in game: Windows 11, RTX 5080, driver 621.47. Played at Castle Town's gate at 16:9, 16:10, 4:3 and 21:9: 16:10 and 4:3 show 16:9's full width and more above and below, with the HUD in the corners (7c06402bd, on main 68fc87175). On an earlier head (main 6318f4056): a 1280x800 window, a cutscene, a conversation, targeting, a speech bubble and the pause menu at 16:10 all looked right.
Author
Member

The same spot (Castle Town's gate) on Windows 11, RTX 5080. All three pictures are 1280 pixels wide. 16:10 is 1280x800, the Steam Deck's size.

Before: 16:10 on main 45d1863b2. The sides are cut off.

16:10 on main

After: 16:10 with this PR (7c06402bd). It has 16:9's full width, and more above and below.

16:10 with this PR

16:9 with this PR (an earlier head, on main 6318f4056), to compare the width.

16:9 with this PR

The same spot (Castle Town's gate) on Windows 11, RTX 5080. All three pictures are 1280 pixels wide. 16:10 is 1280x800, the Steam Deck's size. **Before: 16:10 on `main` 45d1863b2.** The sides are cut off. ![16:10 on main](https://git.magicbean.dev/attachments/d856b0b0-3a6f-4543-b8ae-6b908fcce6c0) **After: 16:10 with this PR (7c06402bd).** It has 16:9's full width, and more above and below. ![16:10 with this PR](https://git.magicbean.dev/attachments/e864b9bd-5258-4840-856b-02d10a1e95f4) **16:9 with this PR** (an earlier head, on main 6318f4056), to compare the width. ![16:9 with this PR](https://git.magicbean.dev/attachments/51e4c300-9055-4d83-acf0-f25a09c0be35)
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The Windows playthrough shows the intended wider framing, but the remaining gameplay and Tier 1 platform checks have not run. The reported performance comparison also does not measure this change against main. Recommend approval; not approved on the forge.

Narrow screens retain the full width of the 16:9 view and show more vertically, including in cutscenes; world-point projection follows the picture shape. The camera math is straightforward and tested, but the additional visible scene and affected gameplay paths need broader validation.

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

  • L1 game/crates/game-core/src/camera/lens.rs:154: The newly visible parts of gameplay and cutscenes still need the planned platform and gameplay checks. (more on the line) Do: Run the listed Hyrule Field edge-culling and bow or slingshot checks, plus gameplay, conversation and cutscene checks on Linux or Steam Deck and the affected Tier 1 hardware.
  • L2 game/crates/game-core/src/camera/lens.rs:159: The cost of opening the view has not been measured against main. (more on the line) Do: Compare main and this head with the same settings in a demanding scene, using interleaved runs and fps, 1% lows and frame times; include a representative Steam Deck or AMD system and a narrower aspect.

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

  • game/crates/api/src/services/camera.rs:536: Can you show a world point and camera setup that this implementation projects incorrectly?

Checks: Still running: 11 checks.

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

Does it help: Yes for the demonstrated framing on Windows: the author reports matching the 16:9 width at 16:10 and 4:3. Performance cost is unproven: two 45-second pairs on an RTX 5080 compared this branch at 90% and 100% field of view, not main against the PR; fps ranged from 154.8–160.1 versus 155.4–159.0.

Other systems: The lens runs for 16:9 gameplay and event cameras, and affects culling, aiming and mod projections. Windows/NVIDIA framing and one cutscene were played; Linux, Steam Deck, AMD, edge culling and aiming remain unverified. Portrait cameras are excluded by their own aspect ratio. Saves, audio and input are not directly changed.

Switches: None added, changed or removed.

Reviewed: d4653f2f93 against bfc7225047: Read AGENTS.md, CONTRIBUTING.md, the PR template and standards; docs/review-checklist.md and the adjacent Tooling checkout are absent. Read the code diff, lens and camera layout, widescreen picture and startup paths, projection and camera-hook surroundings, changed documentation and translation entries, commit log, and supplied comments and CI results. The long API camera file and wide.rs were read around the changed paths; unrelated portions and translations were skimmed. No generated files or recorded runs were added.; nothing run (a code review).

Checked and fine:

  • The new picture ratio is held in an atomic and reset when the widescreen mod stops.
  • The lens tests cover the 16:9 frame width, field-of-view scaling, event cameras and non-16:9 cameras.
  • The changed files contain no game-derived output, generated binaries, third-party changes, API version changes or new switches.
  • The feature commits record AI assistance.

Testing: Read-only review; no tests or project code were run. The author reports game-core and widescreen tests passing on this head; CI is still running.

Overlaps and merge order: PR #142 is described as an opt-in window-mode approach; this change sets the default picture rule. No merge dependency is established.


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

**Recommendation: Approve.** The code is ready: only testing is left. The Windows playthrough shows the intended wider framing, but the remaining gameplay and Tier 1 platform checks have not run. The reported performance comparison also does not measure this change against main. Recommend approval; not approved on the forge. Narrow screens retain the full width of the 16:9 view and show more vertically, including in cutscenes; world-point projection follows the picture shape. The camera math is straightforward and tested, but the additional visible scene and affected gameplay paths need broader validation. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `game/crates/game-core/src/camera/lens.rs:154`: The newly visible parts of gameplay and cutscenes still need the planned platform and gameplay checks. (more on the line) **Do:** Run the listed Hyrule Field edge-culling and bow or slingshot checks, plus gameplay, conversation and cutscene checks on Linux or Steam Deck and the affected Tier 1 hardware. - **L2** `game/crates/game-core/src/camera/lens.rs:159`: The cost of opening the view has not been measured against main. (more on the line) **Do:** Compare main and this head with the same settings in a demanding scene, using interleaved runs and fps, 1% lows and frame times; include a representative Steam Deck or AMD system and a narrower aspect. **Questions (1)** (not confirmed from the code; they don't hold the recommendation) - `game/crates/api/src/services/camera.rs:536`: Can you show a world point and camera setup that this implementation projects incorrectly? **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for the demonstrated framing on Windows: the author reports matching the 16:9 width at 16:10 and 4:3. Performance cost is unproven: two 45-second pairs on an RTX 5080 compared this branch at 90% and 100% field of view, not main against the PR; fps ranged from 154.8–160.1 versus 155.4–159.0. **Other systems:** The lens runs for 16:9 gameplay and event cameras, and affects culling, aiming and mod projections. Windows/NVIDIA framing and one cutscene were played; Linux, Steam Deck, AMD, edge culling and aiming remain unverified. Portrait cameras are excluded by their own aspect ratio. Saves, audio and input are not directly changed. **Switches:** None added, changed or removed. **Reviewed:** d4653f2f932c against bfc72250470c: Read AGENTS.md, CONTRIBUTING.md, the PR template and standards; docs/review-checklist.md and the adjacent Tooling checkout are absent. Read the code diff, lens and camera layout, widescreen picture and startup paths, projection and camera-hook surroundings, changed documentation and translation entries, commit log, and supplied comments and CI results. The long API camera file and wide.rs were read around the changed paths; unrelated portions and translations were skimmed. No generated files or recorded runs were added.; nothing run (a code review). **Checked and fine:** - The new picture ratio is held in an atomic and reset when the widescreen mod stops. - The lens tests cover the 16:9 frame width, field-of-view scaling, event cameras and non-16:9 cameras. - The changed files contain no game-derived output, generated binaries, third-party changes, API version changes or new switches. - The feature commits record AI assistance. **Testing:** Read-only review; no tests or project code were run. The author reports game-core and widescreen tests passing on this head; CI is still running. **Overlaps and merge order:** PR #142 is described as an opt-in window-mode approach; this change sets the default picture rule. No merge dependency is established. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
@ -101,0 +151,4 @@
gameplay(g, camera, k, taller);
let angle = g.vreg_f32(layout::ANGLE_VREG);
if taller != 1.0 && is_lens(angle) {
g.set_vreg_f32(layout::ANGLE_VREG, framed(angle, taller));
Member

L1 (should fix): The newly visible parts of gameplay and cutscenes still need the planned platform and gameplay checks.

When: At 16:10 the projection opens beyond the previously visible frame; grass or distant objects could pop at its edges, aiming could be offset, or a cutscene could reveal unstaged content. The supplied playthrough does not cover those cases or Linux and Steam Deck.

Do: Run the listed Hyrule Field edge-culling and bow or slingshot checks, plus gameplay, conversation and cutscene checks on Linux or Steam Deck and the affected Tier 1 hardware.

**L1** (should fix): The newly visible parts of gameplay and cutscenes still need the planned platform and gameplay checks. *When:* At 16:10 the projection opens beyond the previously visible frame; grass or distant objects could pop at its edges, aiming could be offset, or a cutscene could reveal unstaged content. The supplied playthrough does not cover those cases or Linux and Steam Deck. **Do:** Run the listed Hyrule Field edge-culling and bow or slingshot checks, plus gameplay, conversation and cutscene checks on Linux or Steam Deck and the affected Tier 1 hardware.
@ -101,0 +156,4 @@
}
/// The gameplay camera's part: the mods' factor `k`, and their cameras.
fn gameplay(g: &mut GuestCtx<'_>, camera: u64, k: f32, taller: f32) {
Member

L2 (should fix): The cost of opening the view has not been measured against main.

When: At 16:10 and especially 4:3 the expanded view can draw and process more scene content. Comparing two field-of-view settings on this branch does not measure the complete change against the base, and the only reported hardware is an RTX 5080.

Do: Compare main and this head with the same settings in a demanding scene, using interleaved runs and fps, 1% lows and frame times; include a representative Steam Deck or AMD system and a narrower aspect.

**L2** (should fix): The cost of opening the view has not been measured against main. *When:* At 16:10 and especially 4:3 the expanded view can draw and process more scene content. Comparing two field-of-view settings on this branch does not measure the complete change against the base, and the only reported hardware is an RTX 5080. **Do:** Compare main and this head with the same settings in a demanding scene, using interleaved runs and fps, 1% lows and frame times; include a representative Steam Deck or AMD system and a narrower aspect.
llun force-pushed feat/tall-screens-show-more from d4653f2f93
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to 75d95d78e1
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
2026-12-04 01:23:57 +00:00
Compare
Author
Member

Pushed 75d95d78e, on main f536e7d06. It adds one test and moves one line of code into a small function. The camera code is the same.

The question (camera.rs:536): I know of no world point that is projected incorrectly. The new test a_projected_point_is_where_the_games_lens_draws_it compares the projection with the matrix the game builds from the angle the lens leaves. It covers 5:4, 4:3, 16:10, 16:9, 21:9 and 32:9, at four angles, for points in the middle and off to the sides. It passes. It does not cover a mod's roll or lens; this PR does not change those.

L1 (game checks): partly done, on Windows 11 with an RTX 5080. In Hyrule Field at 16:10 and 4:3, standing and walking, nothing is missing at the top or bottom edge. I could not turn the camera, because the control bridge's right stick did not move it. That, aiming, Linux, Steam Deck and AMD are not tested. Turning the camera, aiming and Linux or Steam Deck stay in Still to test.

L2 (speed against main): not done. The numbers in Measurements compare two Field of view values of this build. They do not compare main with this PR, and they are from one place on one graphics card. They do not settle the cost on a weaker card.

Pushed 75d95d78e, on main f536e7d06. It adds one test and moves one line of code into a small function. The camera code is the same. **The question (`camera.rs:536`):** I know of no world point that is projected incorrectly. The new test `a_projected_point_is_where_the_games_lens_draws_it` compares the projection with the matrix the game builds from the angle the lens leaves. It covers 5:4, 4:3, 16:10, 16:9, 21:9 and 32:9, at four angles, for points in the middle and off to the sides. It passes. It does not cover a mod's roll or lens; this PR does not change those. **L1 (game checks):** partly done, on Windows 11 with an RTX 5080. In Hyrule Field at 16:10 and 4:3, standing and walking, nothing is missing at the top or bottom edge. I could not turn the camera, because the control bridge's right stick did not move it. That, aiming, Linux, Steam Deck and AMD are not tested. Turning the camera, aiming and Linux or Steam Deck stay in *Still to test*. **L2 (speed against main):** not done. The numbers in Measurements compare two Field of view values of this build. They do not compare main with this PR, and they are from one place on one graphics card. They do not settle the cost on a weaker card.
Author
Member
@review
BeanBot left a comment

Recommendation: Approve. The code is ready: only testing is left. The new framing is shown working in several Windows scenes, but the planned gameplay and platform checks remain incomplete, and its rendering cost has not been measured against main. Recommend approval; not approved on the forge.

Narrow screens retain the full 16:9 width and show more above and below, while wider screens keep their existing framing. The shared lens calculation also aligns world-point projection with the new view, at the cost of drawing a larger visible area on narrow screens.

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

  • L1 game/crates/game-core/src/camera/lens.rs:154: The newly visible parts of gameplay and cutscenes still need the planned platform and gameplay checks. When: At 16:10 the projection opens beyond the previously visible frame; grass or distant objects could pop at its edges, aiming could be offset, or a cutscene could reveal unstaged content. The supplied playthrough does not cover those cases or Linux and Steam Deck. Do: Run the listed Hyrule Field edge-culling and bow or slingshot checks, plus gameplay, conversation and cutscene checks on Linux or Steam Deck and the affected Tier 1 hardware.
  • L2 game/crates/game-core/src/camera/lens.rs:159: The cost of opening the view has not been measured against main. When: At 16:10 and especially 4:3 the expanded view can draw and process more scene content. Comparing two field-of-view settings on this branch does not measure the complete change against the base, and the only reported hardware is an RTX 5080. Do: Compare main and this head with the same settings in a demanding scene, using interleaved runs and fps, 1% lows and frame times; include a representative Steam Deck or AMD system and a narrower aspect.

Since the last review (on d4653f2f93)
Still open: L1 (The newly visible parts of gameplay and cutscenes still need the planned platform and game…); L2 (The cost of opening the view has not been measured against main.)

Checks: Still running: 11 checks.

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

Does it help: Yes for framing: the author reports that 16:10 and 4:3 show the full 16:9 width on Windows. The performance cost is unproven: the reported 154.8–160.1 fps runs compare two FOV settings on this branch, not this branch against main.

Other systems: The lens affects gameplay, conversations and cutscenes on narrow screens, including culling and mod-projected markers. Windows on an RTX 5080 was exercised; Linux, Steam Deck, AMD, camera rotation and aiming remain untested. Wider screens retain the original angle.

Switches: No switches added, changed or removed. Existing Field of view controls gameplay framing; its 100% default now gives a taller view on narrow screens.

Reviewed: 75d95d78e1 against f536e7d061: Read the repository rules, camera lens and API projection changes, related camera layout and widescreen wiring, documentation diffs, commits, comments and recorded checks. Translation and generated content were not read in full; the complete remaining changed files and all dependent code were not read in full.; nothing run (a code review).

Checked and fine:

  • The new projection test compares projected points with the lens framing calculation at narrow, standard and wide aspect ratios.
  • The author reports the HUD remains at the screen corners and the narrow views retain the 16:9 width.

Testing: The author reports in-game Windows testing and passing camera tests on this head. CI is still running; no tests or game runs were performed in this review.

Overlaps and merge order: #142 is an open, opt-in window-mode approach to related framing; the description distinguishes its scope.


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

**Recommendation: Approve.** The code is ready: only testing is left. The new framing is shown working in several Windows scenes, but the planned gameplay and platform checks remain incomplete, and its rendering cost has not been measured against main. Recommend approval; not approved on the forge. Narrow screens retain the full 16:9 width and show more above and below, while wider screens keep their existing framing. The shared lens calculation also aligns world-point projection with the new view, at the cost of drawing a larger visible area on narrow screens. **Testing before merging (2)** (runs on the systems it can change; it doesn't hold the recommendation) - **L1** `game/crates/game-core/src/camera/lens.rs:154`: The newly visible parts of gameplay and cutscenes still need the planned platform and gameplay checks. *When:* At 16:10 the projection opens beyond the previously visible frame; grass or distant objects could pop at its edges, aiming could be offset, or a cutscene could reveal unstaged content. The supplied playthrough does not cover those cases or Linux and Steam Deck. **Do:** Run the listed Hyrule Field edge-culling and bow or slingshot checks, plus gameplay, conversation and cutscene checks on Linux or Steam Deck and the affected Tier 1 hardware. - **L2** `game/crates/game-core/src/camera/lens.rs:159`: The cost of opening the view has not been measured against main. *When:* At 16:10 and especially 4:3 the expanded view can draw and process more scene content. Comparing two field-of-view settings on this branch does not measure the complete change against the base, and the only reported hardware is an RTX 5080. **Do:** Compare main and this head with the same settings in a demanding scene, using interleaved runs and fps, 1% lows and frame times; include a representative Steam Deck or AMD system and a narrower aspect. **Since the last review** (on d4653f2f932c) Still open: L1 (The newly visible parts of gameplay and cutscenes still need the planned platform and game…); L2 (The cost of opening the view has not been measured against main.) **Checks:** Still running: 11 checks. <details> <summary>More: does it help, other systems, switches, what was read</summary> **Does it help:** Yes for framing: the author reports that 16:10 and 4:3 show the full 16:9 width on Windows. The performance cost is unproven: the reported 154.8–160.1 fps runs compare two FOV settings on this branch, not this branch against main. **Other systems:** The lens affects gameplay, conversations and cutscenes on narrow screens, including culling and mod-projected markers. Windows on an RTX 5080 was exercised; Linux, Steam Deck, AMD, camera rotation and aiming remain untested. Wider screens retain the original angle. **Switches:** No switches added, changed or removed. Existing Field of view controls gameplay framing; its 100% default now gives a taller view on narrow screens. **Reviewed:** 75d95d78e181 against f536e7d061d4: Read the repository rules, camera lens and API projection changes, related camera layout and widescreen wiring, documentation diffs, commits, comments and recorded checks. Translation and generated content were not read in full; the complete remaining changed files and all dependent code were not read in full.; nothing run (a code review). **Checked and fine:** - The new projection test compares projected points with the lens framing calculation at narrow, standard and wide aspect ratios. - The author reports the HUD remains at the screen corners and the narrow views retain the 16:9 width. **Testing:** The author reports in-game Windows testing and passing camera tests on this head. CI is still running; no tests or game runs were performed in this review. **Overlaps and merge order:** #142 is an open, opt-in window-mode approach to related framing; the description distinguishes its scope. </details> --- <sub>Automated code review by BeanBot (gpt-6.1-terra), asked for by llun. Nothing was run; a maintainer decides.</sub>
Author
Member

Rebased onto main 299ed5b70 (a7901114b), with no conflicts. The three new changes on main touch none of this PR's files, so the game was not rebuilt. The tests of game-core, api and sysmod-widescreen pass, except a_walked_reshade_folder_counts_a_change_once_two_walks_agree, which already failed on main before this PR.

Rebased onto main 299ed5b70 (a7901114b), with no conflicts. The three new changes on main touch none of this PR's files, so the game was not rebuilt. The tests of `game-core`, `api` and `sysmod-widescreen` pass, except `a_walked_reshade_folder_counts_a_change_once_two_walks_agree`, which already failed on main before this PR.
llun force-pushed feat/tall-screens-show-more from 75d95d78e1
Some checks failed
PR description / Title and description (pull_request_target) Has been cancelled
CI / What the change needs (pull_request) Has been cancelled
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Has been cancelled
CI / Third-party parts and guide screenshots (pull_request) Has been cancelled
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Has been cancelled
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Has been cancelled
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Has been cancelled
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Has been cancelled
CI / Website build and checks (pull_request) Has been cancelled
to a7901114b7
Some checks failed
PR description / Title and description (pull_request_target) Successful in 5s
CI / What the change needs (pull_request) Successful in 7s
CI / Third-party parts and guide screenshots (pull_request) Successful in 10s
CI / Lint (pre-commit, ShellCheck, actionlint) (pull_request) Successful in 19s
CI / Host C for Windows (llvm-mingw, compile only) (pull_request) Failing after 1m25s
CI / Renderer build check (Windows, compile --only renderer, without and with FSR 4) (pull_request) Successful in 15m21s
CI / Rust (rustfmt, clippy, cargo test, end to end) (pull_request) Failing after 20m38s
CI / Renderer build check (Linux, compile --only renderer, without and with FSR 4) (pull_request) Successful in 14m51s
CI / Website build and checks (pull_request) Successful in 1m18s
CI / Game-free checks (run_all.py, part 2/2) (pull_request) Failing after 51m44s
CI / Game-free checks (run_all.py, part 1/2) (pull_request) Failing after 1h0m5s
2026-12-04 01:29:12 +00:00
Compare
HumanBean deleted branch feat/tall-screens-show-more 2026-12-04 01:36:26 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 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!3142
No description provided.