3440x1440 without an upscaler: a 2408x1008 scene the title's temporal pass scales up #422
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound!422
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-422"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@retroiffy on GitHub · 2026-12-02 06:18 UTC · original
retroiffy:ultrawide-scene-without-upscaler→main· +42 −19 · 2 files · 72 commits · closed without mergingWith 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_forgives 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 0x10000at the break. It happened on four of four starts. The same output with DLSS Balanced (scene 1995x835 through the title's FidelityFX path) ran.+0x2219650is the title's out-of-memory break. VIctory-NVIDIA'sheap_budget.rs(2212f60d) traces it, for a full-size 3840x2160 scene, to the function at+0x4fac3c0finding 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), andprepare(..., upscaled);run.rspassesupscaler.is_some().preparestill leaves scale 1, whichprepare_upscalerrequires (it accepts 2/3 or 1) and then overwrites with the mode's scale.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_forandpreparelike #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_1440pwithVICTORY_DISPLAY_PROFILE_TEST_IMAGEset 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.display 3440x1440 SDR, scene 2408x1008, then 150 s with no exception, 30 fps at the end on a still screen (menu or loading).🤖 Generated with Claude Code
Pull request closed