Sharpness row occasionally disappears in place on the Graphics tab when switching Upscaler #3229

Closed
opened 2026-12-05 04:36:54 +00:00 by Jer9 · 2 comments
Member

Longshot version

longshot pr-3223-a725d2de (source 429d93ea) (based on main @ 3a0f7d8f7).

What happened

While testing PR #3223 on the Graphics tab and switching Upscaler, the Sharpness slider occasionally disappeared in place from between its neighbouring rows without scrolling.

In the same session, system/menu logged 0 faults and 0 stops (settingsHost.decls only ran once on initial menu open at 3.2 ms), so this is not caused by the 5 ms frame-listener fault/stop cycle.

Code context

  • sharpness in game/mods/graphics/mod.toml has no shownIf, hideWhen, or needs, so settings_host never sets shown = false.
  • This points to a longshot/ui keyed-child reconciliation or Section/Column layout bug when sibling rows directly above sharpness (Skip Upscaler Wait, Dynamic resolution, Minimum floor, Render resolution) mount/unmount as Upscaler changes.

Hardware & OS

  • OS: Windows 11 (build 26300)
  • CPU / RAM: AMD Ryzen AI 7 350 (16 threads), 26 GB usable
  • GPU / Driver: AMD Radeon(TM) 860M Graphics, Adrenalin 26.10.1 (LLPC)
  • Upscaler: AMD FSR 4.1.2 (INT8 Lite stand-in), 1920x1080
### Longshot version `longshot pr-3223-a725d2de (source 429d93ea)` (based on `main @ 3a0f7d8f7`). ### What happened While testing PR #3223 on the Graphics tab and switching `Upscaler`, the `Sharpness` slider occasionally disappeared in place from between its neighbouring rows without scrolling. In the same session, `system/menu` logged **0 faults and 0 stops** (`settingsHost.decls` only ran once on initial menu open at `3.2 ms`), so this is not caused by the 5 ms frame-listener fault/stop cycle. ### Code context - `sharpness` in `game/mods/graphics/mod.toml` has no `shownIf`, `hideWhen`, or `needs`, so `settings_host` never sets `shown = false`. - This points to a `longshot/ui` keyed-child reconciliation or `Section`/`Column` layout bug when sibling rows directly above `sharpness` (`Skip Upscaler Wait`, `Dynamic resolution`, `Minimum floor`, `Render resolution`) mount/unmount as `Upscaler` changes. ### Hardware & OS - **OS:** Windows 11 (build 26300) - **CPU / RAM:** AMD Ryzen AI 7 350 (16 threads), 26 GB usable - **GPU / Driver:** AMD Radeon(TM) 860M Graphics, Adrenalin 26.10.1 (LLPC) - **Upscaler:** AMD FSR 4.1.2 (INT8 Lite stand-in), 1920x1080
Member

This looks like a valid bug report. I couldn't locate the cause in the code.

The report describes a plausible menu defect, but I could not find code that establishes why Sharpness disappears. Its declaration has no visibility condition, and the menu is intended to retain keyed rows when neighboring rows change. The reported PR commit is available in the checkout, but the reported source revision is not, so I could not fully compare the tested build.


For maintainers

Reporter specifically notes PR #3223 testing and states system/menu had 0 faults and 0 stops; settingsHost.decls ran once at initial menu open, at 3.2 ms. Search found no matching issue or fix in the issue/PR results. Do not assume the proposed reconciliation/layout cause is confirmed.

Investigate row state and Section height when the disappearance occurs, alongside the exact sequence of Upscaler choices and other Graphics settings. Blame attributes the keyed reconciliation to d984fd704 and the current Section structure to 73944b9c7; neither establishes a cause.

Seen in the code:

  • game/mods/graphics/mod.toml:745 — Sharpness is declared as a slider without shownIf, hideWhen, or needs.
  • game/mods/graphics/mod.toml:624 — Skip Upscaler Wait and other nearby rows have visibility conditions that can change the page layout.
  • game/mods/menu/src/view.ts:851 — The menu omits rows whose state is missing or not shown; game/mods/menu/src/rows.tsx:499 creates the remaining rows with their setting keys.
  • game/modapi/ui/runtime.js:1063 — Reconciliation retains children with matching keys and types; I did not find a specific failure there.
  • game/modapi/ui/kit.tsx:410 — Section clips its rows to a measured height, another relevant area to investigate, but the code alone does not establish that it caused this disappearance.
  • git history: HEAD is the reported main base 3a0f7d8f7. PR commit a725d2de changes settings_host.rs and settings_push.rs; source revision 429d93ea is unavailable in this checkout.

Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.

**This looks like a valid bug report.** I couldn't locate the cause in the code. The report describes a plausible menu defect, but I could not find code that establishes why Sharpness disappears. Its declaration has no visibility condition, and the menu is intended to retain keyed rows when neighboring rows change. The reported PR commit is available in the checkout, but the reported source revision is not, so I could not fully compare the tested build. --- **For maintainers** Reporter specifically notes PR #3223 testing and states `system/menu` had 0 faults and 0 stops; `settingsHost.decls` ran once at initial menu open, at 3.2 ms. Search found no matching issue or fix in the issue/PR results. Do not assume the proposed reconciliation/layout cause is confirmed. Investigate row state and Section height when the disappearance occurs, alongside the exact sequence of Upscaler choices and other Graphics settings. Blame attributes the keyed reconciliation to d984fd704 and the current Section structure to 73944b9c7; neither establishes a cause. Seen in the code: - game/mods/graphics/mod.toml:745 — Sharpness is declared as a slider without shownIf, hideWhen, or needs. - game/mods/graphics/mod.toml:624 — Skip Upscaler Wait and other nearby rows have visibility conditions that can change the page layout. - game/mods/menu/src/view.ts:851 — The menu omits rows whose state is missing or not shown; game/mods/menu/src/rows.tsx:499 creates the remaining rows with their setting keys. - game/modapi/ui/runtime.js:1063 — Reconciliation retains children with matching keys and types; I did not find a specific failure there. - game/modapi/ui/kit.tsx:410 — Section clips its rows to a measured height, another relevant area to investigate, but the code alone does not establish that it caused this disappearance. - git history: HEAD is the reported main base 3a0f7d8f7. PR commit a725d2de changes settings_host.rs and settings_push.rs; source revision 429d93ea is unavailable in this checkout. --- <sub>Automated triage by BeanBot (gpt-6-luna). Nothing was run; a maintainer decides.</sub>
Contributor

@Jer9 a fix is in #3280, and a retest on your Radeon 860M would settle it.

What I found: Sharpness is the last row of the collapsible "Resolution and upscaling" section. That section cuts its rows to the height it last heard from them (ShutSection in game/modapi/ui/kit.tsx), and it dropped a size that matched its last render's height. When the rows got shorter and then as tall again (rows above Sharpness mounting and unmounting as Upscaler changes) across two presents before the menu's script took its events, the section stayed at the shorter height, and Sharpness stayed under the cut. That happens only when the menu's script falls behind the frames, which fits your iGPU (and #3230/#3232). I couldn't make it happen on an RTX 4090.

To retest: on a build of the PR, switch Upscaler on the Graphics tab as you did when you filed this. Sharpness should stay. If it still disappears, please say whether shutting and reopening the section brings it back.

@Jer9 a fix is in https://git.magicbean.dev/MagicBeanDev/Longshot/pulls/3280, and a retest on your Radeon 860M would settle it. What I found: Sharpness is the last row of the collapsible "Resolution and upscaling" section. That section cuts its rows to the height it last heard from them (`ShutSection` in `game/modapi/ui/kit.tsx`), and it dropped a size that matched its last render's height. When the rows got shorter and then as tall again (rows above Sharpness mounting and unmounting as Upscaler changes) across two presents before the menu's script took its events, the section stayed at the shorter height, and Sharpness stayed under the cut. That happens only when the menu's script falls behind the frames, which fits your iGPU (and #3230/#3232). I couldn't make it happen on an RTX 4090. To retest: on a build of the PR, switch Upscaler on the Graphics tab as you did when you filed this. Sharpness should stay. If it still disappears, please say whether shutting and reopening the section brings it back.
Sign in to join this conversation.
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#3229
No description provided.