d3d12: weapon shop's 3D weapon preview is blurred into the menu background with the title's dynamic resolution; sharp at a fixed -Resolution 1440 #2960

Open
opened 2026-12-01 21:47:11 +00:00 by TripyFox · 7 comments
TripyFox commented 2026-12-01 21:47:11 +00:00 (Migrated from github.com)
Contributor

Imported from ubiquitarianism/leonida. Originally posted by TripyFox on 2026-12-01T21:47:11Z.


What happens

In the weapon shop's purchase menu the 3D weapon preview is missing: the weapon is drawn, but it is blurred together with the menu's blurred background (when the weapon is rotated with the right stick only a soft, weapon-shaped smudge moves). With a fixed render scale (-Resolution 1440) the same menu shows the weapon sharp and lit. No error.

Commit

27613ab6b (built with d3d12\scripts\build-nvidia.ps1, diag profile, features diagnostics,dlss,mimalloc)

System

Windows 11 Pro 10.0.26200, AMD Ryzen 7 9800X3D, 64 GB RAM, NVIDIA GeForce RTX 5090 32 GB, driver 621.40

Where

runtime (d3d12/ runtime, leonida.exe, in the running game, not the build)

Command and steps

Started with:

scripts\play-d3d12.ps1 -Game <game folder> -Data <data folder> -Log -More @{LEONIDA_FG_LIMIT_FPS='0'; LEONIDA_REAPER='0'; LEONIDA_OUTPUT='3840x2160'; LEONIDA_PIPELINE_WAIT_MS='1000'}

That is the launcher's default path for Series X (the title's own upscaler and dynamic resolution, -Lowest 1080), with a 4K output, so the lowest render scale is 0.5. Frame generation 4x (saved in the F1 menu).

Steps: load a save in the open world, walk into a weapon shop, open its purchase menu and select any weapon. It happened every time I opened the menu, in two separate runs.

All runs with the same save, same place, one setting changed at a time:

Run Render scale Weapon preview
Command above title's dynamic resolution, lowest 0.5 blurred into the background
+ LEONIDA_RT_RESOLVE=0 same blurred into the background (so not the ray-tracing resolves that run with every ray a miss)
-Dlss balanced instead DLSS, fixed 0.6 inconclusive: the whole world is black (the launcher already marks Series X + DLSS as experimental, "the world is not lit on this path yet")
-Resolution 2160 instead fixed 1.0 the title stops about 6 s after start (output below)
-Resolution 1440 instead fixed 0.6667 sharp and lit

Also checked:

  • The same save in another VIctory-family runtime (foxhound, DLSS balanced at a fixed 0.58 scale, 4K output) shows the weapon sharp in the same menu.
  • No draws are waiting for pipelines in that menu (0 being made). The draws left out are all on purpose (ray-tracing structure builder off, about 500 per frame), and foxhound leaves out about the same number there while showing the weapon, so those don't explain it.
  • Not tested: the launcher's default 2560x1440 output (lowest scale 0.75 there). I only ran with LEONIDA_OUTPUT=3840x2160, because at 2560x1440 the title's menus overlap on this setup.

Workaround: -Resolution 1440. Frame time compared with the dynamic-resolution run, bucketed by draws per frame (5-second log windows, title frames before frame generation; the fixed run had only a few minutes outside menus):

Draws/frame Dynamic (lowest 0.5) Fixed 1440
3-5k 25.8 ms 28.4 ms
5-7k 29.1 ms 30.5 ms
7-9k 31.1 ms 31.4 ms

Screenshots, the screen recording and the full logs are not attached (game content). I can run any setting or test build you suggest and look up more log lines.

The investigation and this report were AI-assisted (Claude Opus 5.5).

Output

No error for the blur itself; it's a visual fault.

Dynamic-resolution run (blurred):
INFO leonida_loader::hooks: the title's own dynamic resolution: its lowest render scale set, the scale above it left to the title (LEONIDA_RENDER_SCALE_MIN) min=0.5 applied=true
INFO leonida_gpu::dxgi: display mode reported to the title width=3840 height=2160

Fixed -Resolution 1440 run (sharp):
INFO leonida_loader::hooks: hook applied what="render scale: own upscaler minimum"
INFO leonida_loader::hooks: hook applied what="render scale: own upscaler maximum = minimum"
INFO leonida_gpu::dxgi: display mode reported to the title width=3840 height=2160

-Resolution 2160 run (title stops about 6 s after start; the title's crash reporter writes a dump, its upload is blocked):
Leonida: unhandled exception 0x80000003 at leonida-image-<exe hash>.dll+0x2219650
<!-- greyfinch-sync:ubiquitarianism/leonida:issue:6731381814 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960). Originally posted by [TripyFox](https://github.com/TripyFox) on 2026-12-01T21:47:11Z. --- ### What happens In the weapon shop's purchase menu the 3D weapon preview is missing: the weapon is drawn, but it is blurred together with the menu's blurred background (when the weapon is rotated with the right stick only a soft, weapon-shaped smudge moves). With a fixed render scale (`-Resolution 1440`) the same menu shows the weapon sharp and lit. No error. ### Commit 27613ab6b (built with `d3d12\scripts\build-nvidia.ps1`, diag profile, features `diagnostics,dlss,mimalloc`) ### System Windows 11 Pro 10.0.26200, AMD Ryzen 7 9800X3D, 64 GB RAM, NVIDIA GeForce RTX 5090 32 GB, driver 621.40 ### Where runtime (`d3d12/` runtime, `leonida.exe`, in the running game, not the build) ### Command and steps Started with: ``` scripts\play-d3d12.ps1 -Game <game folder> -Data <data folder> -Log -More @{LEONIDA_FG_LIMIT_FPS='0'; LEONIDA_REAPER='0'; LEONIDA_OUTPUT='3840x2160'; LEONIDA_PIPELINE_WAIT_MS='1000'} ``` That is the launcher's default path for Series X (the title's own upscaler and dynamic resolution, `-Lowest 1080`), with a 4K output, so the lowest render scale is 0.5. Frame generation 4x (saved in the F1 menu). Steps: load a save in the open world, walk into a weapon shop, open its purchase menu and select any weapon. It happened every time I opened the menu, in two separate runs. All runs with the same save, same place, one setting changed at a time: | Run | Render scale | Weapon preview | |---|---|---| | Command above | title's dynamic resolution, lowest 0.5 | blurred into the background | | + `LEONIDA_RT_RESOLVE=0` | same | blurred into the background (so not the ray-tracing resolves that run with every ray a miss) | | `-Dlss balanced` instead | DLSS, fixed 0.6 | inconclusive: the whole world is black (the launcher already marks Series X + DLSS as experimental, "the world is not lit on this path yet") | | `-Resolution 2160` instead | fixed 1.0 | the title stops about 6 s after start (output below) | | `-Resolution 1440` instead | fixed 0.6667 | **sharp and lit** | Also checked: - The same save in another VIctory-family runtime (foxhound, DLSS balanced at a fixed 0.58 scale, 4K output) shows the weapon sharp in the same menu. - No draws are waiting for pipelines in that menu (`0 being made`). The draws left out are all on purpose (ray-tracing structure builder off, about 500 per frame), and foxhound leaves out about the same number there while showing the weapon, so those don't explain it. - Not tested: the launcher's default 2560x1440 output (lowest scale 0.75 there). I only ran with `LEONIDA_OUTPUT=3840x2160`, because at 2560x1440 the title's menus overlap on this setup. Workaround: `-Resolution 1440`. Frame time compared with the dynamic-resolution run, bucketed by draws per frame (5-second log windows, title frames before frame generation; the fixed run had only a few minutes outside menus): | Draws/frame | Dynamic (lowest 0.5) | Fixed 1440 | |---|---|---| | 3-5k | 25.8 ms | 28.4 ms | | 5-7k | 29.1 ms | 30.5 ms | | 7-9k | 31.1 ms | 31.4 ms | Screenshots, the screen recording and the full logs are not attached (game content). I can run any setting or test build you suggest and look up more log lines. The investigation and this report were AI-assisted (Claude Opus 5.5). ### Output ```text No error for the blur itself; it's a visual fault. Dynamic-resolution run (blurred): INFO leonida_loader::hooks: the title's own dynamic resolution: its lowest render scale set, the scale above it left to the title (LEONIDA_RENDER_SCALE_MIN) min=0.5 applied=true INFO leonida_gpu::dxgi: display mode reported to the title width=3840 height=2160 Fixed -Resolution 1440 run (sharp): INFO leonida_loader::hooks: hook applied what="render scale: own upscaler minimum" INFO leonida_loader::hooks: hook applied what="render scale: own upscaler maximum = minimum" INFO leonida_gpu::dxgi: display mode reported to the title width=3840 height=2160 -Resolution 2160 run (title stops about 6 s after start; the title's crash reporter writes a dump, its upload is blocked): Leonida: unhandled exception 0x80000003 at leonida-image-<exe hash>.dll+0x2219650 ```
zmasi commented 2026-12-02 03:36:48 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T03:36:48Z.


Thanks for the clean matrix. From reading the loader, launcher, and renderer code: -Lowest and -Resolution differ in one patch of the title (whether the scale is pinned or left to the title above the floor), and nothing in the GPU renderer reads the scale variable directly. With LEONIDA_OUTPUT=3840x2160, the launcher's implicit -Lowest 1080 sets a floor of 0.5, below the title's stock 2/3. Your two runs differ in two things at once (fixed vs dynamic, and 0.667 vs a 0.5 floor), and Frame Generation 4x was saved in the F1 menu.

These checks (no new build needed) would separate them:

  1. Rendered vs shown frames in the failing setup: launch with -Capture and -More @{ LEONIDA_CAPTURE_SHOWN = '1' }, create a file named rec in the capture folder the launcher prints while rotating the weapon for a few seconds, and press F9 once in the menu during the same run. Are the frame-* pictures (what the title rendered) sharp and only the shown-* pictures between them smeared, or is the weapon already blurred in frame-*? (If the log reports frames were skipped because they are not 8-bit colour, or if the smear disappears while rec is present, please note that too.)
  2. Same menu with Frame Generation turned off in the F1 menu. (Note: passing -NoFrameGen on the command line removes your saved 4x from the F1 settings file so later launches default to 2x — restore 4x in F1 before repeating any earlier comparison.)
  3. -Resolution 1080 (fixed 0.5) and -Lowest 1440 (floor 2/3), both at LEONIDA_OUTPUT=3840x2160.
  4. From the failing run's log, check for any of:
    • "frame generation: ... passed over" or "frame generation: a frame's only G-buffer pass is far smaller than the last one"
    • "a placed texture lies where a texture the host writes does, and is not like it"
    • "no stand-in for the indirect light: depth dimensions differ"
  5. The rows of frame-<n>-ops.txt around the preview (pipelines, target sizes, viewports) from the failing run and from a -Resolution 1440 run.

(Note: Foxhound's DLSS mode switches the title onto its other upscaler path at a fixed scale, so it is a different-renderer comparison rather than an isolated control for the native dynamic-resolution path.)

AI-assisted: Claude Fable 5.2, reviewed by GPT-6.2 Astra; not reproduced locally without game files.

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7334060504 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960#issuecomment-7334060504). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-02T03:36:48Z. --- Thanks for the clean matrix. From reading the loader, launcher, and renderer code: `-Lowest` and `-Resolution` differ in one patch of the title (whether the scale is pinned or left to the title above the floor), and nothing in the GPU renderer reads the scale variable directly. With `LEONIDA_OUTPUT=3840x2160`, the launcher's implicit `-Lowest 1080` sets a floor of `0.5`, below the title's stock `2/3`. Your two runs differ in two things at once (fixed vs dynamic, and `0.667` vs a `0.5` floor), and Frame Generation `4x` was saved in the F1 menu. These checks (no new build needed) would separate them: 1. **Rendered vs shown frames in the failing setup:** launch with `-Capture` and `-More @{ LEONIDA_CAPTURE_SHOWN = '1' }`, create a file named `rec` in the capture folder the launcher prints while rotating the weapon for a few seconds, and press `F9` once in the menu during the same run. Are the `frame-*` pictures (what the title rendered) sharp and only the `shown-*` pictures between them smeared, or is the weapon already blurred in `frame-*`? *(If the log reports frames were skipped because they are not 8-bit colour, or if the smear disappears while `rec` is present, please note that too.)* 2. **Same menu with Frame Generation turned off in the F1 menu.** *(Note: passing `-NoFrameGen` on the command line removes your saved `4x` from the F1 settings file so later launches default to `2x` — restore `4x` in F1 before repeating any earlier comparison.)* 3. **`-Resolution 1080` (fixed `0.5`) and `-Lowest 1440` (floor `2/3`), both at `LEONIDA_OUTPUT=3840x2160`.** 4. **From the failing run's log**, check for any of: - `"frame generation: ... passed over"` or `"frame generation: a frame's only G-buffer pass is far smaller than the last one"` - `"a placed texture lies where a texture the host writes does, and is not like it"` - `"no stand-in for the indirect light: depth dimensions differ"` 5. **The rows of `frame-<n>-ops.txt` around the preview** (pipelines, target sizes, viewports) from the failing run and from a `-Resolution 1440` run. *(Note: Foxhound's DLSS mode switches the title onto its other upscaler path at a fixed scale, so it is a different-renderer comparison rather than an isolated control for the native dynamic-resolution path.)* AI-assisted: Claude Fable 5.2, reviewed by GPT-6.2 Astra; not reproduced locally without game files.
TripyFox commented 2026-12-02 10:28:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by TripyFox on 2026-12-02T10:28:53Z.


Thanks for the checklist. I ran all of it on 27613ab6b (same build, same save, same shop menu, 4K output via LEONIDA_OUTPUT=3840x2160 in every run, one setting changed at a time). Short version: the weapon is drawn sharp into the G-buffer and is already blurred in the frames the title renders, with or without Frame Generation. Only the title's dynamic resolution with the 0.5 floor blurs it: a fixed 0.5 and a dynamic 2/3 floor are both sharp.

Run Render scale Frame Generation Weapon preview
default -Lowest 1080 (from the report) dynamic, floor 0.5 4x blurred
same, -NoFrameGen dynamic, floor 0.5 off blurred
-Resolution 1080 fixed 0.5 4x sharp
-Lowest 1440 dynamic, floor 2/3 4x sharp
-Resolution 1440 (from the report) fixed 2/3 4x sharp

1. Rendered vs shown frames (-Capture, LEONIDA_CAPTURE_SHOWN=1, rec for about 4 s while rotating, then one F9 frame via a dump file): 129 frame-* and 511 shown-* pictures. The weapon is already a soft smudge in frame-*; the shown-* pictures around a frame show the same smudge, nothing extra. No "not 8-bit" skips in the log, and the smear did not go away while rec was present.

2. Frame Generation off: still blurred. (I restored the saved 4x in F1 afterwards, thanks for the warning.)

3. -Resolution 1080 sharp, -Lowest 1440 sharp (table above). So it's neither the 0.5 scale alone nor dynamic resolution alone, only the two together.

4. Log lines in the blurred run: none of a placed texture lies where a texture the host writes does, and is not like it, no stand-in for the indirect light: depth dimensions differ, or only G-buffer pass is far smaller. The only passed over lines are another G-buffer pass of the frame, no larger than the one kept, passed over ... size=[1024, 1024] kept=[1920, 1080] (the same in the sharp -Resolution 1080 run; kept=[2560, 1440] with -Lowest 1440). In one longer dynamic-floor-0.5 session (about 10 min in the world before the shop) the log also had a smaller G-buffer pass of the same frame passed over size=[1920, 1080] larger=[1920, 1088] and the G-buffer pass's depth or motion vectors are other textures than the frame before ... size=[1920, 1088]; I didn't see 1088 in the short runs.

5. frame-<n>-ops.txt around the preview. The draws with the preview's depth (all viewports and scissors 0 0 <w> <h>, depth 0..1):

Blurred (dynamic, floor 0.5):

414 indirect [mesh ef5353add2969464]                               depth 1920x1080 f19
518 indirect [mesh b7a81f5b96f4ca93, pixel ee78da6862364ddd] targets 1920x1080 f27, f28, f28, f28, f34, f28  depth 1920x1080 f19
522 indirect [mesh b7a81f5b96f4ca93, pixel ee78da6862364ddd] (same targets)                                  depth 1920x1080 f19

The picture of target 12 (1920x1080 f27) from that frame shows the weapon sharp, in front of the shop wall. The blur comes after the G-buffer.

Sharp, fixed 0.5 (-Resolution 1080):

256 indirect [vertex b8fc3874094e2b6d, pixel 91ab4f26e3c6f348] targets 1920x1080 f10  depth 1920x1080 f19

Here the 1920x1080 f10 target (lit scene) shows the weapon sharp over the dimmed shop, before the menu's background blur.

Sharp, dynamic floor 2/3 (-Lowest 1440):

 19 indirect [vertex ed734c953c0eac78, pixel 4eb407bd8e8d0223] targets 2560x1440 f10           depth 2560x1440 f19
 30/36/42 draw [vertex 05cd62db489af324, pixel dc8af7c2fbf4bfa7] targets 2560x1440 f10      depth 2560x1440 f19
165 draw [vertex a9051f5cdae52183, pixel 192417d57619528e] targets 2560x1440 f28, f49           depth 2560x1440 f19
491/622 draw [vertex 2372f66e8b65736f, pixel d6cb1d3aba5b7971] targets 3840x2160 f28           depth 3840x2160 f19

Each F9 capture caught a different set of lists, so the three files don't line up row for row (the blurred one has the G-buffer draws, the fixed-0.5 one doesn't). I can capture more frames (dump with a count) in any of these setups if a specific pass would help.

PR #3054: I put only its commit (ff53fd8b9) onto 27613ab6b (resource.rs is the same there) and ran the default dynamic setup: still blurred. So it doesn't fix this one.

The investigation and this reply were AI-assisted (Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7342531668 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960#issuecomment-7342531668). Originally posted by [TripyFox](https://github.com/TripyFox) on 2026-12-02T10:28:53Z. --- Thanks for the checklist. I ran all of it on 27613ab6b (same build, same save, same shop menu, 4K output via `LEONIDA_OUTPUT=3840x2160` in every run, one setting changed at a time). Short version: **the weapon is drawn sharp into the G-buffer and is already blurred in the frames the title renders, with or without Frame Generation. Only the title's dynamic resolution with the `0.5` floor blurs it: a fixed `0.5` and a dynamic `2/3` floor are both sharp.** | Run | Render scale | Frame Generation | Weapon preview | |---|---|---|---| | default `-Lowest 1080` (from the report) | dynamic, floor 0.5 | 4x | blurred | | same, `-NoFrameGen` | dynamic, floor 0.5 | off | blurred | | `-Resolution 1080` | fixed 0.5 | 4x | **sharp** | | `-Lowest 1440` | dynamic, floor 2/3 | 4x | **sharp** | | `-Resolution 1440` (from the report) | fixed 2/3 | 4x | sharp | **1. Rendered vs shown frames** (`-Capture`, `LEONIDA_CAPTURE_SHOWN=1`, `rec` for about 4 s while rotating, then one F9 frame via a `dump` file): 129 `frame-*` and 511 `shown-*` pictures. The weapon is already a soft smudge in `frame-*`; the `shown-*` pictures around a frame show the same smudge, nothing extra. No "not 8-bit" skips in the log, and the smear did not go away while `rec` was present. **2. Frame Generation off:** still blurred. (I restored the saved `4x` in F1 afterwards, thanks for the warning.) **3.** `-Resolution 1080` sharp, `-Lowest 1440` sharp (table above). So it's neither the `0.5` scale alone nor dynamic resolution alone, only the two together. **4. Log lines** in the blurred run: none of `a placed texture lies where a texture the host writes does, and is not like it`, `no stand-in for the indirect light: depth dimensions differ`, or `only G-buffer pass is far smaller`. The only `passed over` lines are `another G-buffer pass of the frame, no larger than the one kept, passed over ... size=[1024, 1024] kept=[1920, 1080]` (the same in the sharp `-Resolution 1080` run; `kept=[2560, 1440]` with `-Lowest 1440`). In one longer dynamic-floor-0.5 session (about 10 min in the world before the shop) the log also had `a smaller G-buffer pass of the same frame passed over size=[1920, 1080] larger=[1920, 1088]` and `the G-buffer pass's depth or motion vectors are other textures than the frame before ... size=[1920, 1088]`; I didn't see 1088 in the short runs. **5. `frame-<n>-ops.txt` around the preview.** The draws with the preview's depth (all viewports and scissors `0 0 <w> <h>`, depth `0..1`): Blurred (dynamic, floor 0.5): ```text 414 indirect [mesh ef5353add2969464] depth 1920x1080 f19 518 indirect [mesh b7a81f5b96f4ca93, pixel ee78da6862364ddd] targets 1920x1080 f27, f28, f28, f28, f34, f28 depth 1920x1080 f19 522 indirect [mesh b7a81f5b96f4ca93, pixel ee78da6862364ddd] (same targets) depth 1920x1080 f19 ``` The picture of target 12 (`1920x1080 f27`) from that frame shows the weapon sharp, in front of the shop wall. The blur comes after the G-buffer. Sharp, fixed 0.5 (`-Resolution 1080`): ```text 256 indirect [vertex b8fc3874094e2b6d, pixel 91ab4f26e3c6f348] targets 1920x1080 f10 depth 1920x1080 f19 ``` Here the `1920x1080 f10` target (lit scene) shows the weapon sharp over the dimmed shop, before the menu's background blur. Sharp, dynamic floor 2/3 (`-Lowest 1440`): ```text 19 indirect [vertex ed734c953c0eac78, pixel 4eb407bd8e8d0223] targets 2560x1440 f10 depth 2560x1440 f19 30/36/42 draw [vertex 05cd62db489af324, pixel dc8af7c2fbf4bfa7] targets 2560x1440 f10 depth 2560x1440 f19 165 draw [vertex a9051f5cdae52183, pixel 192417d57619528e] targets 2560x1440 f28, f49 depth 2560x1440 f19 491/622 draw [vertex 2372f66e8b65736f, pixel d6cb1d3aba5b7971] targets 3840x2160 f28 depth 3840x2160 f19 ``` Each F9 capture caught a different set of lists, so the three files don't line up row for row (the blurred one has the G-buffer draws, the fixed-0.5 one doesn't). I can capture more frames (`dump` with a count) in any of these setups if a specific pass would help. **PR #3054:** I put only its commit (`ff53fd8b9`) onto 27613ab6b (`resource.rs` is the same there) and ran the default dynamic setup: **still blurred**. So it doesn't fix this one. The investigation and this reply were AI-assisted (Claude Opus 5.5).
zmasi commented 2026-12-02 12:19:34 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T12:19:34Z.


That 5-way matrix pinned down the exact 8-byte difference in the loader, and it explains why -Lowest 1440 was sharp while -Lowest 1080 blurred!

Why -Lowest 1440 stayed sharp while -Lowest 1080 blurred (at 3840x2160)

In d3d12/crates/leonida-loader/src/hooks.rs (0x28f1e78..0x28f1e8f):

  1. 0x28f1e78 writes min_scale ([rsi + 0x90]).
  2. 0x28f1e82 calls 0x1fb4300, which returns 1.0 on Series S and 2/3 (0.6667) on Series X (hooks.rs de550f7cb / #2900).
  3. 0x28f1e87 is vmaxss xmm0, xmm0, dword ptr [rsi + 0x90], computing max_scale = max(2/3, min_scale):
    • -Resolution 1080 (LEONIDA_RENDER_SCALE=0.5): patches both 0x28f1e7e (min_scale = 0.5) and 0x28f1e87 (vmovss, pinning max_scale = min_scale = 0.5) -> min == max == 0.5 (1920x1080) -> sharp.
    • -Lowest 1440 at 4K (LEONIDA_RENDER_SCALE_MIN=0.6667): leaves 0x28f1e87 as vmaxss, so max_scale = max(2/3, 2/3) = 2/3 == min_scale -> degenerate fixed 2560x1440 (not dynamic at all!) -> sharp. (Side note: this also means the launcher's default 1440p Series X setup -Lowest 1080 gives min = 0.75, max = max(2/3, 0.75) = 0.75, which is why frames sit fixed at 1920x1080 there too.)
    • -Lowest 1080 at 4K (LEONIDA_RENDER_SCALE_MIN=0.5): leaves 0x28f1e87 as vmaxss, giving min_scale = 0.5 < max_scale = 2/3 (1920x1080 .. 2560x1440) — the only setup in the matrix where min_scale != max_scale on Series X -> blurred.

Stock Series X runs with min_scale == max_scale == 2/3. When min_scale (0.5) < max_scale (2/3) and the G-buffer renders at 1920x1080 (current_scale = 0.5) while max_scale is 2/3 (2560x1440), only two buckets can lose the sharp weapon mask/composite after f10:

  • Bucket A (pass/target sizing split between current_scale 1920x1080 and max_scale 2560x1440): a post-f10 menu-blur / DOF / foreground-mask pass sizes its target, viewport, or shader UV scale from max_scale (2560x1440) while G-buffer/depth (f19) rendered at 1920x1080 (analogous to #2756's LEONIDA_FSR_MAX_SCALED on the FSR path).
  • Bucket B (leonida-gpu resource/copy handling across 1920x1080 vs 2560x1440): e.g. list.rs copy_resource (unlike resolve and copy_texture_region LEONIDA_COPY_CLIP, copy_resource currently has no dimension-mismatch fallback, so D3D12 silently drops a CopyResource between 1920x1080 and 2560x1440 when the debug layer is off), or transient-heap target aliasing between committed host textures (resource.rs alias_source).

Three quick checks (no rebuild needed) to separate Bucket A vs Bucket B

All with -NoFrameGen and LEONIDA_OUTPUT='3840x2160' in the same shop menu:

  1. Confirm the 2/3 threshold: compare -More @{ LEONIDA_OUTPUT = '3840x2160'; LEONIDA_RENDER_SCALE_MIN = '0.6' } (expect blurred, since 0.6 < 2/3) vs '0.67' (expect sharp, since 0.67 >= 2/3).
  2. Catch any silently dropped D3D12 CopyResource / view mismatch (Bucket B): run -Lowest 1080 -NoFrameGen -More @{ LEONIDA_OUTPUT = '3840x2160'; LEONIDA_D3D12_DEBUG = '1' } and open the shop menu — check the log for any D3D12 error on CopyResource, CreateRenderTargetView, CreateDepthStencilView, or CreateShaderResourceView.
  3. 3-frame dump (3 written to dump in the capture folder): capture 3 consecutive frames in the shop menu once under -Lowest 1080 -NoFrameGen and once under -Resolution 1080 -NoFrameGen. Because thin lists split across frame boundaries in a 1-frame capture, a 3-frame frame-<n>-ops.txt window will catch every pass between 1920x1080 f27 (G-buffer), f10 (lit scene), f28/f49 (menu blur/mask), and the 3840x2160 composite, showing immediately whether one pass switches to 2560x1440!

AI-assisted (Gemini 4 Neon XHigh & Gemini 4 Carbon High).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7345171210 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960#issuecomment-7345171210). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-02T12:19:34Z. --- That 5-way matrix pinned down the exact 8-byte difference in the loader, and it explains why `-Lowest 1440` was sharp while `-Lowest 1080` blurred! ### Why `-Lowest 1440` stayed sharp while `-Lowest 1080` blurred (at `3840x2160`) In `d3d12/crates/leonida-loader/src/hooks.rs` (`0x28f1e78..0x28f1e8f`): 1. `0x28f1e78` writes `min_scale` (`[rsi + 0x90]`). 2. `0x28f1e82` calls `0x1fb4300`, which returns `1.0` on Series S and **`2/3` (`0.6667`) on Series X** (`hooks.rs` `de550f7cb` / #2900). 3. `0x28f1e87` is `vmaxss xmm0, xmm0, dword ptr [rsi + 0x90]`, computing **`max_scale = max(2/3, min_scale)`**: - **`-Resolution 1080` (`LEONIDA_RENDER_SCALE=0.5`):** patches both `0x28f1e7e` (`min_scale = 0.5`) and `0x28f1e87` (`vmovss`, pinning `max_scale = min_scale = 0.5`) -> `min == max == 0.5` (`1920x1080`) -> **sharp**. - **`-Lowest 1440` at 4K (`LEONIDA_RENDER_SCALE_MIN=0.6667`):** leaves `0x28f1e87` as `vmaxss`, so `max_scale = max(2/3, 2/3) = 2/3 == min_scale` -> **degenerate fixed `2560x1440` (not dynamic at all!)** -> **sharp**. *(Side note: this also means the launcher's default 1440p Series X setup `-Lowest 1080` gives `min = 0.75`, `max = max(2/3, 0.75) = 0.75`, which is why frames sit fixed at `1920x1080` there too.)* - **`-Lowest 1080` at 4K (`LEONIDA_RENDER_SCALE_MIN=0.5`):** leaves `0x28f1e87` as `vmaxss`, giving **`min_scale = 0.5 < max_scale = 2/3`** (`1920x1080` .. `2560x1440`) — **the only setup in the matrix where `min_scale != max_scale` on Series X** -> **blurred**. Stock Series X runs with `min_scale == max_scale == 2/3`. When `min_scale (0.5) < max_scale (2/3)` and the G-buffer renders at `1920x1080` (`current_scale = 0.5`) while `max_scale` is `2/3` (`2560x1440`), only two buckets can lose the sharp weapon mask/composite after `f10`: - **Bucket A (pass/target sizing split between `current_scale` `1920x1080` and `max_scale` `2560x1440`):** a post-`f10` menu-blur / DOF / foreground-mask pass sizes its target, viewport, or shader UV scale from `max_scale` (`2560x1440`) while G-buffer/depth (`f19`) rendered at `1920x1080` (analogous to #2756's `LEONIDA_FSR_MAX_SCALED` on the FSR path). - **Bucket B (`leonida-gpu` resource/copy handling across `1920x1080` vs `2560x1440`):** e.g. `list.rs` `copy_resource` (unlike `resolve` and `copy_texture_region` `LEONIDA_COPY_CLIP`, `copy_resource` currently has no dimension-mismatch fallback, so D3D12 silently drops a `CopyResource` between `1920x1080` and `2560x1440` when the debug layer is off), or transient-heap target aliasing between committed host textures (`resource.rs` `alias_source`). ### Three quick checks (no rebuild needed) to separate Bucket A vs Bucket B All with `-NoFrameGen` and `LEONIDA_OUTPUT='3840x2160'` in the same shop menu: 1. **Confirm the `2/3` threshold:** compare `-More @{ LEONIDA_OUTPUT = '3840x2160'; LEONIDA_RENDER_SCALE_MIN = '0.6' }` (expect **blurred**, since `0.6 < 2/3`) vs `'0.67'` (expect **sharp**, since `0.67 >= 2/3`). 2. **Catch any silently dropped D3D12 `CopyResource` / view mismatch (Bucket B):** run `-Lowest 1080 -NoFrameGen -More @{ LEONIDA_OUTPUT = '3840x2160'; LEONIDA_D3D12_DEBUG = '1' }` and open the shop menu — check the log for any D3D12 error on `CopyResource`, `CreateRenderTargetView`, `CreateDepthStencilView`, or `CreateShaderResourceView`. 3. **3-frame `dump` (`3` written to `dump` in the capture folder):** capture 3 consecutive frames in the shop menu once under `-Lowest 1080 -NoFrameGen` and once under `-Resolution 1080 -NoFrameGen`. Because thin lists split across frame boundaries in a 1-frame capture, a 3-frame `frame-<n>-ops.txt` window will catch every pass between `1920x1080 f27` (G-buffer), `f10` (lit scene), `f28/f49` (menu blur/mask), and the `3840x2160` composite, showing immediately whether one pass switches to `2560x1440`! AI-assisted (Gemini 4 Neon XHigh & Gemini 4 Carbon High).
TripyFox commented 2026-12-02 14:14:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by TripyFox on 2026-12-02T14:14:10Z.


All three checks are done on 5ec08c383 (current main), with -NoFrameGen and LEONIDA_OUTPUT=3840x2160 in every run, the same save and the same shop menu. Short version: your threshold holds, the debug layer reports nothing, and the 3-frame captures point to Bucket A. With the 0.5 floor, the title's post chain runs at 2560x1440, while the depth and one 1920x1080 texture it reads are still 1920x1080.

1. The 2/3 threshold: exactly as you predicted.

-Lowest 1080 plus LEONIDA_RENDER_SCALE_MIN Weapon preview
0.6 blurred
0.67 sharp

2. -Lowest 1080 -NoFrameGen with LEONIDA_D3D12_DEBUG=1: the layer was on; its messages reach the log as D3D12: ... lines. I opened the shop menu and rotated the weapon (blurred, as usual). In about 2.5 minutes the layer logged:

  • 2 errors, both at startup before the title draws anything: CreateDescriptorHeap: ... NumDescriptors 4194304 and 2097152, but the limit for shader visible view heaps is 1000000 (id 645).
  • Only warnings otherwise: 3,180 times GetResourceAllocationInfo: ... Alignment cannot be 4KB (id 1380), ClearRenderTargetView: The clear values do not match ×3 (id 820), Load*Pipeline: This library does not have a pipeline stored ×4 (id 971), and one Ignoring InitialState D3D12_RESOURCE_STATE_UNORDERED_ACCESS (id 1328).

Nothing on CopyResource, CreateRenderTargetView, CreateDepthStencilView or CreateShaderResourceView. So there's no sign of Bucket B.

3. 3-frame dump in the shop menu, -Lowest 1080 (blurred) vs -Resolution 1080 (sharp). I compared the two by shader hash. The passes are the same ones in the same order, but with -Lowest 1080 the chain after the lit scene runs at 2560x1440 and 1280x720. With -Resolution 1080 it runs at 1920x1080 and 960x540. Across the two full frames of each capture, lines in frame-<n>-ops.txt mentioning 2560x1440: 40 and 20 (blurred), 0 and 0 (sharp).

Only the blurred run has two extra passes, in each of its frames:

dispatch [compute 22f4971293b8fdcc]  binds 1920x1080 f10/f19/f28/f34/f49/f57/f61/f62; UAVs 2560x1440 f10, 2560x1440 f61, 1920x1080 f28, 1920x1080 f49
dispatch [compute 53bf43a0abccda0e]  binds 1920x1080 f19 (depth);                       UAV  2560x1440 f39

The weapon is still sharp in the 2560x1440 f10 pictures from that frame (the capture saves them at half size). So the step up to 2560x1440 doesn't blur it by itself.

The pass where the two runs part is the scene composite, [vertex 7affbd5bbaa830f3, pixel be9c4e3519c1360a]. It's the first draw into the f24 target that the final 3840x2160 draw ([vertex 0309a446e1a48352, pixel 4f4ec7b16673362f]) reads:

Composite input Blurred (-Lowest 1080) Sharp (-Resolution 1080)
target, viewport 2560x1440 f24, 0 0 2560 1440 1920x1080 f24, 0 0 1920 1080
Srv s1+304, s1+88, s1+104 2560x1440 f10, f28, f49 1920x1080 f10, f28, f49
Srv s1+256 (depth) 1920x1080 f19 1920x1080 f19
Srv s1+264 1920x1080 f87 1920x1080 f87
Srv s1+64, s1+288, s1+312 320x180, 1280x720, 640x360 f26 240x135, 960x540, 480x270 f26

In the blurred run, this draw reads the 1920x1080 depth f19 directly, not the 2560x1440 f39 that 53bf43a0abccda0e just made from it. It also reads a 1920x1080 f87 in which the weapon stands out from the shop around it (its picture looks the same in both runs). Everything else it reads, and its target, is 2560x1440. In the sharp run, every input and the target are 1920x1080.

After the frame, the composite target in the sharp run holds the sharp weapon over the darkened, blurred shop, and the final 3840x2160 picture matches. In the blurred run, the 2560x1440 f24 composite target and the final 3840x2160 picture hold only the blurred shop and the weapon's blurred shape. The sharp weapon layer is missing. So "blurred" is really "the sharp weapon isn't composited over the background blur".

For the rest of the menu chain I could only compare sizes, and they all follow from the target: down-sampling [vertex 506b9f66f23c9c0a, pixel e74dbeaae430a85e] from 2560x1440 to 80x45, up-sampling [vertex ac7708508e9961c3, pixel f28ad0bf8b158acc] back into the 2560x1440 f24 composite target (its constants hold 1/2560, 1/1440), and [vertex 296d62427f26f69f, pixel 8653e7e2dc1e88dc] copying that to 1920x1080 f24 for the blurred menu background. The final 3840x2160 draw reads the 2560x1440 f24 with constants [1920.0, 1080.0, 1/1920, 1/1080]. Those are the same values as in the sharp run, where it reads a 1920x1080 f24.

My guess, not checked: the composite keeps the weapon by reading the 1920x1080 f19/f87 at pixel positions of a 2560x1440 target, so the weapon's pixels land in the wrong place. I can capture more (another dump, a run with -Lowest 1440, or a test build) if that would help.

The investigation and this reply were AI-assisted (Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7348209416 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960#issuecomment-7348209416). Originally posted by [TripyFox](https://github.com/TripyFox) on 2026-12-02T14:14:10Z. --- All three checks are done on 5ec08c383 (current `main`), with `-NoFrameGen` and `LEONIDA_OUTPUT=3840x2160` in every run, the same save and the same shop menu. Short version: **your threshold holds, the debug layer reports nothing, and the 3-frame captures point to Bucket A.** With the `0.5` floor, the title's post chain runs at `2560x1440`, while the depth and one 1920x1080 texture it reads are still `1920x1080`. **1. The `2/3` threshold:** exactly as you predicted. | `-Lowest 1080` plus `LEONIDA_RENDER_SCALE_MIN` | Weapon preview | |---|---| | `0.6` | blurred | | `0.67` | sharp | **2. `-Lowest 1080 -NoFrameGen` with `LEONIDA_D3D12_DEBUG=1`:** the layer was on; its messages reach the log as `D3D12: ...` lines. I opened the shop menu and rotated the weapon (blurred, as usual). In about 2.5 minutes the layer logged: - 2 errors, both at startup before the title draws anything: `CreateDescriptorHeap: ... NumDescriptors 4194304` and `2097152`, `but the limit for shader visible view heaps is 1000000` (id 645). - Only warnings otherwise: 3,180 times `GetResourceAllocationInfo: ... Alignment cannot be 4KB` (id 1380), `ClearRenderTargetView: The clear values do not match` ×3 (id 820), `Load*Pipeline: This library does not have a pipeline stored` ×4 (id 971), and one `Ignoring InitialState D3D12_RESOURCE_STATE_UNORDERED_ACCESS` (id 1328). Nothing on `CopyResource`, `CreateRenderTargetView`, `CreateDepthStencilView` or `CreateShaderResourceView`. So there's no sign of Bucket B. **3. 3-frame `dump` in the shop menu**, `-Lowest 1080` (blurred) vs `-Resolution 1080` (sharp). I compared the two by shader hash. The passes are the same ones in the same order, but with `-Lowest 1080` the chain after the lit scene runs at `2560x1440` and `1280x720`. With `-Resolution 1080` it runs at `1920x1080` and `960x540`. Across the two full frames of each capture, lines in `frame-<n>-ops.txt` mentioning `2560x1440`: 40 and 20 (blurred), 0 and 0 (sharp). Only the blurred run has two extra passes, in each of its frames: ```text dispatch [compute 22f4971293b8fdcc] binds 1920x1080 f10/f19/f28/f34/f49/f57/f61/f62; UAVs 2560x1440 f10, 2560x1440 f61, 1920x1080 f28, 1920x1080 f49 dispatch [compute 53bf43a0abccda0e] binds 1920x1080 f19 (depth); UAV 2560x1440 f39 ``` The weapon is still sharp in the `2560x1440 f10` pictures from that frame (the capture saves them at half size). So the step up to `2560x1440` doesn't blur it by itself. The pass where the two runs part is the scene composite, `[vertex 7affbd5bbaa830f3, pixel be9c4e3519c1360a]`. It's the first draw into the `f24` target that the final `3840x2160` draw (`[vertex 0309a446e1a48352, pixel 4f4ec7b16673362f]`) reads: | Composite input | Blurred (`-Lowest 1080`) | Sharp (`-Resolution 1080`) | |---|---|---| | target, viewport | `2560x1440 f24`, `0 0 2560 1440` | `1920x1080 f24`, `0 0 1920 1080` | | `Srv s1+304`, `s1+88`, `s1+104` | `2560x1440` `f10`, `f28`, `f49` | `1920x1080` `f10`, `f28`, `f49` | | `Srv s1+256` (depth) | **`1920x1080 f19`** | `1920x1080 f19` | | `Srv s1+264` | **`1920x1080 f87`** | `1920x1080 f87` | | `Srv s1+64`, `s1+288`, `s1+312` | `320x180`, `1280x720`, `640x360` `f26` | `240x135`, `960x540`, `480x270` `f26` | In the blurred run, this draw reads the `1920x1080` depth `f19` directly, not the `2560x1440 f39` that `53bf43a0abccda0e` just made from it. It also reads a `1920x1080 f87` in which the weapon stands out from the shop around it (its picture looks the same in both runs). Everything else it reads, and its target, is `2560x1440`. In the sharp run, every input and the target are `1920x1080`. After the frame, the composite target in the sharp run holds the sharp weapon over the darkened, blurred shop, and the final `3840x2160` picture matches. In the blurred run, the `2560x1440 f24` composite target and the final `3840x2160` picture hold only the blurred shop and the weapon's blurred shape. The sharp weapon layer is missing. So "blurred" is really "the sharp weapon isn't composited over the background blur". For the rest of the menu chain I could only compare sizes, and they all follow from the target: down-sampling `[vertex 506b9f66f23c9c0a, pixel e74dbeaae430a85e]` from `2560x1440` to `80x45`, up-sampling `[vertex ac7708508e9961c3, pixel f28ad0bf8b158acc]` back into the `2560x1440 f24` composite target (its constants hold `1/2560, 1/1440`), and `[vertex 296d62427f26f69f, pixel 8653e7e2dc1e88dc]` copying that to `1920x1080 f24` for the blurred menu background. The final `3840x2160` draw reads the `2560x1440 f24` with constants `[1920.0, 1080.0, 1/1920, 1/1080]`. Those are the same values as in the sharp run, where it reads a `1920x1080 f24`. My guess, not checked: the composite keeps the weapon by reading the `1920x1080` `f19`/`f87` at pixel positions of a `2560x1440` target, so the weapon's pixels land in the wrong place. I can capture more (another `dump`, a run with `-Lowest 1440`, or a test build) if that would help. The investigation and this reply were AI-assisted (Claude Opus 5.5).
zmasi commented 2026-12-02 18:50:37 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-02T18:50:37Z.


That 3-frame dump comparison explains the entire bug down to the exact instruction — thank you @TripyFox!

Why the sharp weapon layer disappears (current_scale < max_scale on upscaler 6)

leonida-gpu does not rewrite any constants, viewports, or SRVs on those passes (dlss.rs and stretch.rs are off under LEONIDA_OWN_UPSCALER=1, none of 22f4971293b8fdcc / 53bf43a0abccda0e / be9c4e3519c1360a / 4f4ec7b16673362f are hooked, and draw.rs dumps the CBV floats directly from the title's own memory). Every mismatched binding and constant in your table comes from the title's own engine:

  1. Neither retail Xbox console ever shipped upscaler 6 with min_scale < max_scale:
    • Stock Series S (device_type == 6) uses upscaler 7 (FidelityFX) at fixed 2/3 (1280x720 -> 1920x1080), never upscaler 6.
    • Stock Series X uses upscaler 6, and at RVA 0x28f1e78..0x28f1e8f (d3d12/crates/leonida-loader/src/hooks.rs) sets stock min_scale = 2/3 (0x3F2AAAAB), calls 0x1fb4300() (2/3 on Series X), and computes max_scale = max(2/3, min_scale) = 2/3 — a fixed 2560x1440 render scale, not dynamic resolution!
    • Even at Leonida's default LEONIDA_OUTPUT=2560x1440, -Lowest 1080 sets min_scale = 0.75, giving max_scale = max(2/3, 0.75) = 0.75 == min_scale (already fixed 1920x1080, never scaling to 1440p).
  2. What happens at LEONIDA_OUTPUT=3840x2160 + -Lowest 1080 (min = 0.5 < max = 2/3 < output = 1.0):
    • Because vipatch.rs targets 60 FPS (16.67 ms), any menu/scene frame above 16.67 ms drops current_render_size to the 0.5 floor (1920x1080) while max_render_size stays 2560x1440 (2/3).
    • [compute 22f4971293b8fdcc] upscales lit scene f10 (1920x1080 -> 2560x1440) and [compute 53bf43a0abccda0e] upscales depth to 2560x1440 f39, leaving the weapon foreground mask f87 at 1920x1080.
    • Scene composite [vertex 7affbd5bbaa830f3, pixel be9c4e3519c1360a] then draws into 2560x1440 f24 while binding pre-upscale 1920x1080 f19 (s1+256, instead of f39) and 1920x1080 f87 (s1+264), and final composite [vertex 0309a446e1a48352, pixel 4f4ec7b16673362f] binds 2560x1440 f24 (max_render_size) while still filling its CBV from current_render_size ([1920.0, 1080.0, 1/1920, 1/1080]), because current == max was always invariant on stock Series X!

One quick check to pick the exact fix scope

Could you check that same weapon-shop preview with -SeriesS -Lowest 720 -NoFrameGen (no LEONIDA_OUTPUT override needed; on Series S with LEONIDA_OWN_UPSCALER=1, -Lowest 720 sets min_scale = 2/3 = 1280x720 below Series S's max_scale = 1.0 = 1920x1080)?

  • If -SeriesS -Lowest 720 -NoFrameGen is ALSO missing the sharp weapon, upscaler 6's shop composite breaks whenever min_scale < max_scale on both profiles (so hooks.rs / -Lowest under LEONIDA_OWN_UPSCALER=1 should pin max_scale = min_scale).
  • If -SeriesS -Lowest 720 -NoFrameGen stays SHARP, min_scale < max_scale == 1.0 works and only Series X's 3-tier min < max = 2/3 < 1.0 regime is broken (so Series X -Lowest should pin LEONIDA_RENDER_SCALE whenever scale < 2/3, which also saves the ~40 wasted 2560x1440 + TAAU ops per frame at 4K).

AI-assisted: Gemini 4 Carbon (High).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7355236753 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960#issuecomment-7355236753). Originally posted by [zmasi](https://github.com/zmasi) on 2026-12-02T18:50:37Z. --- That 3-frame `dump` comparison explains the entire bug down to the exact instruction — thank you @TripyFox! ### Why the sharp weapon layer disappears (`current_scale < max_scale` on upscaler `6`) `leonida-gpu` does **not** rewrite any constants, viewports, or SRVs on those passes (`dlss.rs` and `stretch.rs` are off under `LEONIDA_OWN_UPSCALER=1`, none of `22f4971293b8fdcc` / `53bf43a0abccda0e` / `be9c4e3519c1360a` / `4f4ec7b16673362f` are hooked, and `draw.rs` dumps the CBV floats directly from the title's own memory). Every mismatched binding and constant in your table comes from the title's own engine: 1. **Neither retail Xbox console ever shipped upscaler `6` with `min_scale < max_scale`:** - Stock **Series S** (`device_type == 6`) uses upscaler `7` (FidelityFX) at fixed `2/3` (`1280x720 -> 1920x1080`), never upscaler `6`. - Stock **Series X** uses upscaler `6`, and at RVA `0x28f1e78..0x28f1e8f` (`d3d12/crates/leonida-loader/src/hooks.rs`) sets stock `min_scale = 2/3` (`0x3F2AAAAB`), calls `0x1fb4300()` (`2/3` on Series X), and computes `max_scale = max(2/3, min_scale) = 2/3` — a **fixed `2560x1440` render scale**, not dynamic resolution! - Even at Leonida's default `LEONIDA_OUTPUT=2560x1440`, `-Lowest 1080` sets `min_scale = 0.75`, giving `max_scale = max(2/3, 0.75) = 0.75 == min_scale` (already fixed `1920x1080`, never scaling to `1440p`). 2. **What happens at `LEONIDA_OUTPUT=3840x2160` + `-Lowest 1080` (`min = 0.5 < max = 2/3 < output = 1.0`):** - Because `vipatch.rs` targets `60 FPS` (`16.67 ms`), any menu/scene frame above `16.67 ms` drops `current_render_size` to the `0.5` floor (`1920x1080`) while `max_render_size` stays `2560x1440` (`2/3`). - `[compute 22f4971293b8fdcc]` upscales lit scene `f10` (`1920x1080 -> 2560x1440`) and `[compute 53bf43a0abccda0e]` upscales depth to `2560x1440 f39`, **leaving the weapon foreground mask `f87` at `1920x1080`**. - Scene composite `[vertex 7affbd5bbaa830f3, pixel be9c4e3519c1360a]` then draws into `2560x1440 f24` while binding **pre-upscale `1920x1080` `f19` (`s1+256`, instead of `f39`) and `1920x1080` `f87` (`s1+264`)**, and final composite `[vertex 0309a446e1a48352, pixel 4f4ec7b16673362f]` binds `2560x1440 f24` (`max_render_size`) while still filling its CBV from `current_render_size` (`[1920.0, 1080.0, 1/1920, 1/1080]`), because `current == max` was always invariant on stock Series X! ### One quick check to pick the exact fix scope Could you check that same weapon-shop preview with **`-SeriesS -Lowest 720 -NoFrameGen`** (no `LEONIDA_OUTPUT` override needed; on Series S with `LEONIDA_OWN_UPSCALER=1`, `-Lowest 720` sets `min_scale = 2/3` = `1280x720` below Series S's `max_scale = 1.0` = `1920x1080`)? - If **`-SeriesS -Lowest 720 -NoFrameGen` is ALSO missing the sharp weapon**, upscaler `6`'s shop composite breaks whenever `min_scale < max_scale` on *both* profiles (so `hooks.rs` / `-Lowest` under `LEONIDA_OWN_UPSCALER=1` should pin `max_scale = min_scale`). - If **`-SeriesS -Lowest 720 -NoFrameGen` stays SHARP**, `min_scale < max_scale == 1.0` works and only Series X's 3-tier `min < max = 2/3 < 1.0` regime is broken (so Series X `-Lowest` should pin `LEONIDA_RENDER_SCALE` whenever `scale < 2/3`, which also saves the ~40 wasted `2560x1440` + TAAU ops per frame at 4K). AI-assisted: Gemini 4 Carbon (High).
TripyFox commented 2026-12-03 07:29:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by TripyFox on 2026-12-03T07:29:22Z.


-SeriesS -Lowest 720 -NoFrameGen is blurred too, the same as Series X with -Lowest 1080. So by your split it's the first case: upscaler 6's shop composite breaks whenever min_scale < max_scale, on both profiles.

Command, with no LEONIDA_OUTPUT override:

scripts\play-d3d12.ps1 -Game <game folder> -Data <data folder> -Log -SeriesS -Lowest 720 -NoFrameGen -More @{LEONIDA_REAPER='0'; LEONIDA_PIPELINE_WAIT_MS='1000'}

The log shows the settings took effect: LEONIDA_MENU_CONSOLE=series-s, LEONIDA_OWN_UPSCALER=1, LEONIDA_RENDER_SCALE_MIN=0.6667, and the loader's the title's own dynamic resolution: its lowest render scale set, the scale above it left to the title (LEONIDA_RENDER_SCALE_MIN) min=0.666700005531311 applied=true. Same save and shop menu as before; I rotated the weapon in the preview, and it stayed blurred into the background.

Build: 69cd4106c, plus one local change in hwrt.rs that only runs with -HardwareRT (off here). Limit: this is a visual check only. I took no dump this time, so I can't say what render size the title was at in those frames. I can capture one if you want to confirm the 720p/1080p mismatch on Series S as well.

The investigation and this reply were AI-assisted (Claude Opus 5.5).

<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7371056868 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960#issuecomment-7371056868). Originally posted by [TripyFox](https://github.com/TripyFox) on 2026-12-03T07:29:22Z. --- `-SeriesS -Lowest 720 -NoFrameGen` is **blurred too**, the same as Series X with `-Lowest 1080`. So by your split it's the first case: upscaler `6`'s shop composite breaks whenever `min_scale < max_scale`, on both profiles. Command, with no `LEONIDA_OUTPUT` override: ``` scripts\play-d3d12.ps1 -Game <game folder> -Data <data folder> -Log -SeriesS -Lowest 720 -NoFrameGen -More @{LEONIDA_REAPER='0'; LEONIDA_PIPELINE_WAIT_MS='1000'} ``` The log shows the settings took effect: `LEONIDA_MENU_CONSOLE=series-s`, `LEONIDA_OWN_UPSCALER=1`, `LEONIDA_RENDER_SCALE_MIN=0.6667`, and the loader's `the title's own dynamic resolution: its lowest render scale set, the scale above it left to the title (LEONIDA_RENDER_SCALE_MIN) min=0.666700005531311 applied=true`. Same save and shop menu as before; I rotated the weapon in the preview, and it stayed blurred into the background. Build: `69cd4106c`, plus one local change in `hwrt.rs` that only runs with `-HardwareRT` (off here). Limit: this is a visual check only. I took no `dump` this time, so I can't say what render size the title was at in those frames. I can capture one if you want to confirm the `720p`/`1080p` mismatch on Series S as well. The investigation and this reply were AI-assisted (Claude Opus 5.5).
MoonEyes commented 2026-12-03 15:38:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ubiquitarianism/leonida. Originally posted by MoonEyes on 2026-12-03T15:38:23Z.


This was generated by AI during triage.

Agent Brief

Category: bug
Summary: Keep the weapon-shop purchase preview sharp with dynamic resolution on upscaler 6

Current behavior:
The weapon in the purchase menu is blurred into the menu background when the title's upscaler 6 runs with a variable render-scale range (min_scale < max_scale). The report and follow-up checks isolate this to dynamic resolution, reproduce it on Series X and Series S profiles, and show that frame generation is not required for the blur. Fixed-scale runs remain sharp.

Desired behavior:
The weapon preview remains sharp and distinct from the blurred menu background throughout the supported dynamic-resolution range, on both console profiles. The fix must not rely on pinning a fixed scale or disabling frame generation.

Key interfaces:

  • The title's upscaler 6 render-scale contract — preview composition must remain correct when minimum and maximum render scales differ.
  • The weapon-shop purchase-menu rendering path — preserve a sharp preview while the surrounding menu background is blurred.
  • Frame-generation integration — the preview must remain correct with frame generation enabled or disabled, without changing unrelated frame-generation behavior.

Acceptance criteria:

  • The weapon preview stays sharp with dynamic resolution on Series X and Series S profiles when min_scale < max_scale.
  • The same preview stays sharp at fixed scale and with frame generation both enabled and disabled.
  • The issue's reported dynamic-resolution configuration no longer blurs the preview; validate in the game on the same menu and report the tested profile, scale range, and frame-generation setting.
  • No game screenshots, recordings, or game files are added to the repository.

Out of scope:

  • Replacing the runtime or changing other menu rendering.
  • General frame-generation visual quality or unrelated upscaler behavior.
<!-- greyfinch-sync:ubiquitarianism/leonida:comment:7383483728 --> Imported from [ubiquitarianism/leonida](https://github.com/ProjectLeonida/mandy/issues/2960#issuecomment-7383483728). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-12-03T15:38:23Z. --- > *This was generated by AI during triage.* ## Agent Brief **Category:** bug **Summary:** Keep the weapon-shop purchase preview sharp with dynamic resolution on upscaler 6 **Current behavior:** The weapon in the purchase menu is blurred into the menu background when the title's upscaler 6 runs with a variable render-scale range (`min_scale < max_scale`). The report and follow-up checks isolate this to dynamic resolution, reproduce it on Series X and Series S profiles, and show that frame generation is not required for the blur. Fixed-scale runs remain sharp. **Desired behavior:** The weapon preview remains sharp and distinct from the blurred menu background throughout the supported dynamic-resolution range, on both console profiles. The fix must not rely on pinning a fixed scale or disabling frame generation. **Key interfaces:** - The title's upscaler 6 render-scale contract — preview composition must remain correct when minimum and maximum render scales differ. - The weapon-shop purchase-menu rendering path — preserve a sharp preview while the surrounding menu background is blurred. - Frame-generation integration — the preview must remain correct with frame generation enabled or disabled, without changing unrelated frame-generation behavior. **Acceptance criteria:** - [ ] The weapon preview stays sharp with dynamic resolution on Series X and Series S profiles when `min_scale < max_scale`. - [ ] The same preview stays sharp at fixed scale and with frame generation both enabled and disabled. - [ ] The issue's reported dynamic-resolution configuration no longer blurs the preview; validate in the game on the same menu and report the tested profile, scale range, and frame-generation setting. - [ ] No game screenshots, recordings, or game files are added to the repository. **Out of scope:** - Replacing the runtime or changing other menu rendering. - General frame-generation visual quality or unrelated upscaler behavior.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
ProjectLeonida/mandy#2960
No description provided.