3440x1440 without an upscaler: a 2408x1008 scene the title's temporal pass scales up #422

Closed
github-bot wants to merge 0 commits from github-bot/gh-422 into main AGit
Owner

@⁠retroiffy on GitHub · 2026-12-02 06:18 UTC · original
retroiffy:ultrawide-scene-without-upscaler → main · +42 −19 · 2 files · 72 commits · closed without merging

With the 3440x1440 output from #284 and no upscaler (DLSS off, which is also what the launcher forces when no Streamline folder is set), the title draws its scene at the full 3440x1440 (scene_for gives scale 1). Every such start on my PC ended 4 to 7 s in: unhandled exception 0x80000003 at victory-image+0x2219650, caller frame +0x4fac413, rdx 0x2b0800, r8 0x10000 at the break. It happened on four of four starts. The same output with DLSS Balanced (scene 1995x835 through the title's FidelityFX path) ran.

+0x2219650 is the title's out-of-memory break. VIctory-NVIDIA's heap_budget.rs (2212f60d) traces it, for a full-size 3840x2160 scene, to the function at +0x4fac3c0 finding no room in heap 2 of the Series X heap table. That heap holds the scene's render targets and is 2,199 MB, sized for the console's 2560x1440 scene. A 3440x1440 scene has 1.34 times those pixels, and this crash looks like the same limit: same break, same caller function. I have not confirmed that by raising the heap.

This PR keeps the scene inside the console's budget, with no extra memory. Without an upscaler, the 3440x1440 output draws a 2408x1008 scene (ULTRAWIDE_SCENE_SCALE = 0.7, whole on both sides), and the title's own temporal pass scales it up, as it does for the stock 4K output (2/3) and the 1080p-to-1440p path (0.75).

  • scene_for(width, render_1080p, upscaled), and prepare(..., upscaled); run.rs passes upscaler.is_some().
  • With an upscaler, nothing changes: prepare still leaves scale 1, which prepare_upscaler requires (it accepts 2/3 or 1) and then overwrites with the mode's scale.
  • 2560x1440 and 1080p-to-1440p are unchanged.

The other route is to keep the scene native and enlarge heap 2 (and, once it has room, the scene pool). #303 does that for outputs wider than 4096 and for its 32:9 presets, and VIctory-NVIDIA does it for native 4K. It is sharper, but it costs committed memory: VIctory-NVIDIA found 8,000 MB runs a 4K scene where 6,000 MB still ran out. That is a lot on a 32 GB PC. If you would rather have that for 3440x1440, or both (the smaller scene by default, the bigger heap opt-in), I can redo this on top of #303.

This touches scene_for and prepare like #303, #308 and #309, so whichever lands first, the others need a rebase. I am happy to do mine.

Tested on Windows 11, RTX 5080, a 3440x1440 display:

  • cargo test --locked -p victory native_1440p with VICTORY_DISPLAY_PROFILE_TEST_IMAGE set to the retail executable: 3 passed. They cover the 2408x1008 case and the DLSS path still finding scale 1.
  • cargo clippy -p victory --all-targets --locked -- -D warnings: clean.
  • Start with DLSS off: display 3440x1440 SDR, scene 2408x1008, then 150 s with no exception, 30 fps at the end on a still screen (menu or loading).
  • Not yet checked in the world: the picture at that scale, the HUD, and a full session.

🤖 Generated with Claude Code

**@⁠retroiffy** on GitHub · 2026-12-02 06:18 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/422) `retroiffy:ultrawide-scene-without-upscaler` → `main` · +42 −19 · 2 files · 72 commits · closed without merging With the 3440x1440 output from #284 and no upscaler (DLSS off, which is also what the launcher forces when no Streamline folder is set), the title draws its scene at the full 3440x1440 (`scene_for` gives scale 1). Every such start on my PC ended 4 to 7 s in: `unhandled exception 0x80000003 at victory-image+0x2219650`, caller frame `+0x4fac413`, `rdx 0x2b0800`, `r8 0x10000` at the break. It happened on four of four starts. The same output with DLSS Balanced (scene 1995x835 through the title's FidelityFX path) ran. `+0x2219650` is the title's out-of-memory break. VIctory-NVIDIA's `heap_budget.rs` (2212f60d) traces it, for a full-size 3840x2160 scene, to the function at `+0x4fac3c0` finding no room in heap 2 of the Series X heap table. That heap holds the scene's render targets and is 2,199 MB, sized for the console's 2560x1440 scene. A 3440x1440 scene has 1.34 times those pixels, and this crash looks like the same limit: same break, same caller function. I have not confirmed that by raising the heap. **This PR** keeps the scene inside the console's budget, with no extra memory. Without an upscaler, the 3440x1440 output draws a 2408x1008 scene (`ULTRAWIDE_SCENE_SCALE = 0.7`, whole on both sides), and the title's own temporal pass scales it up, as it does for the stock 4K output (2/3) and the 1080p-to-1440p path (0.75). - `scene_for(width, render_1080p, upscaled)`, and `prepare(..., upscaled)`; `run.rs` passes `upscaler.is_some()`. - With an upscaler, nothing changes: `prepare` still leaves scale 1, which `prepare_upscaler` requires (it accepts 2/3 or 1) and then overwrites with the mode's scale. - 2560x1440 and 1080p-to-1440p are unchanged. **The other route** is to keep the scene native and enlarge heap 2 (and, once it has room, the scene pool). #303 does that for outputs wider than 4096 and for its 32:9 presets, and VIctory-NVIDIA does it for native 4K. It is sharper, but it costs committed memory: VIctory-NVIDIA found 8,000 MB runs a 4K scene where 6,000 MB still ran out. That is a lot on a 32 GB PC. If you would rather have that for 3440x1440, or both (the smaller scene by default, the bigger heap opt-in), I can redo this on top of #303. This touches `scene_for` and `prepare` like #303, #308 and #309, so whichever lands first, the others need a rebase. I am happy to do mine. Tested on Windows 11, RTX 5080, a 3440x1440 display: - `cargo test --locked -p victory native_1440p` with `VICTORY_DISPLAY_PROFILE_TEST_IMAGE` set to the retail executable: 3 passed. They cover the 2408x1008 case and the DLSS path still finding scale 1. - `cargo clippy -p victory --all-targets --locked -- -D warnings`: clean. - Start with DLSS off: `display 3440x1440 SDR, scene 2408x1008`, then 150 s with no exception, 30 fps at the end on a still screen (menu or loading). - **Not yet checked in the world:** the picture at that scale, the HUD, and a full session. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Drawn at the full 3440x1440 with DLSS off, every start ended a few seconds in at the title's allocator (int3 at image RVA 0x2219650). The scene now stays inside the 2560x1440 the Series X profile is built for; with DLSS the upscaler sets the scale as before.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-02 06:19:25 +00:00
github-bot closed this pull request 2026-12-02 07:54:13 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.