DLAA only where its full-size scene fits: the title had no room for it (#663) #747

Merged
nick0451 merged 2 commits from upstream-pr/747 into main 2026-11-29 08:16:58 +00:00
nick0451 commented 2026-11-28 04:51:55 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-28T04:51:55Z.


Fixes #663.

What was wrong

DLAA on the Series S profile stops the title 6-10 s into the start with 0x80000003 at
victory-image+0x2219650. FSR 3 frame generation is not the cause: the title stops the same way
with frame generation off.

+0x2219650 is the int3 after the title's fatal-error call (+0x2219620: lock, then a virtual
call that should not return). It is reached from the title's allocator at +0x4fac3c0: an
allocation came back empty, and the allocator was told to stop the title if that happens. At the
stop, rdx = 0x882000 and r8 = 0x10000: a 64 KiB-aligned block of about 8.9 MB, the size of a
render target at DLAA's full scene size. The caller (+0x193e1f9) skipped XMemVirtualAlloc, so
no allocation was refused on our side. The block came from the title's own Series S memory, which
has no room for a scene larger than its own (Series S 1280x720, Series X 2560x1440). The
same happens on Series X at the stock 2160p output: an allocation of 0x1fe0000 bytes (3840x2176
R11G11B10), found by Yoshi-233 below and reproduced here. Series X at the 1440p output, whose
full-size scene is the title's own, runs.

The change

DLAA runs only where its full-size scene fits: Series X with the 1440p output. Everywhere else
(Series S, and Series X at 2160p) it runs at Quality's scale (2/3, the title's own) and the start
prints a line that says so. It is set in run.rs before Streamline starts, so DLSS, the title's
patch and the notice use the same mode, whichever way the game was started (victory.exe play,
the script launcher, or VICTORY_DLSS_MODE set by hand). The other modes do not change. Mode::for_scene in plan.rs holds the rule, with a test. (The first commit covered
Series S only; the second widens it to Series X at 2160p.)

Runs

RTX 3090 24 GB (driver 610.88), i9-14900K, 32 GB, Windows 11, v1.0.2.1, FSR 3 frame generation
chosen in F1 unless noted.

Build How DLAA was chosen Result
main 8fc2254 --set VICTORY_DLSS_MODE=dlaa stops at +0x2219650, 8 s
main 8fc2254 the same, frame generation off stops at +0x2219650, 6 s
main 8fc2254 F1 menu (VICTORY_MENU_DLSS=dlaa) stops at +0x2219650, 10 s
main 63b902f F1, new Series S picture row at 1080 stops at +0x2219650, 8 s
#679 --set FSR 3 held off as intended; stops at +0x2219650, 6 s
#681 F1 menu FSR 3 held off as intended; stops at +0x2219650, 8 s
main 8fc2254, Series X, 1440p output F1 menu runs, in the world
main 63b902f and this PR's first commit, Series X, 2160p output F1 menu stops at +0x2219650, rdx = 0x1fe0000
this, Series S --set, F1 menu, and F1 at 1080 runs at Quality, in the world past 75 s
this, Series X, 2160p output F1 menu runs at Quality, in the world past 80 s
this, Series X, 1440p output F1 menu stays DLAA (2560x1440 scene), in the world past 80 s

I also tried keeping DLAA's scale and giving the title FidelityFX quality mode 1 in place of 0
(native AA). It stopped the same way, so the mode number is not the cause.

#679 and #681 switch FSR 3 off for DLAA, but on this PC DLAA alone already stops the title, so
neither one prevents the stop.

One thing for you to decide

63b902f added a Series S picture row at 1080 that maps to DLAA. With this change that row starts
at 720 (Quality) and the start says why. You may want to take the row out, or relabel it. I left
the menu as it is.

Checks

  • cargo test --workspace --locked: 1126 passed, 0 failed.
  • cargo clippy --workspace --all-targets --locked -- -D warnings: only the two errors already on
    main (shadow.rs:1708, emit/mod.rs:2768, which #687 fixes); nothing in the files changed here.

Found and tested with an AI assistant (Claude Code). Every figure above comes from this PC's own
runs and logs.

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5536800236 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/747). Originally posted by [nick0451](https://github.com/nick0451) on 2026-11-28T04:51:55Z. --- Fixes #663. ## What was wrong DLAA on the Series S profile stops the title 6-10 s into the start with `0x80000003` at `victory-image+0x2219650`. FSR 3 frame generation is not the cause: the title stops the same way with frame generation off. `+0x2219650` is the `int3` after the title's fatal-error call (`+0x2219620`: lock, then a virtual call that should not return). It is reached from the title's allocator at `+0x4fac3c0`: an allocation came back empty, and the allocator was told to stop the title if that happens. At the stop, `rdx = 0x882000` and `r8 = 0x10000`: a 64 KiB-aligned block of about 8.9 MB, the size of a render target at DLAA's full scene size. The caller (`+0x193e1f9`) skipped `XMemVirtualAlloc`, so no allocation was refused on our side. The block came from the title's own Series S memory, which has no room for a scene larger than its own (Series S 1280x720, Series X 2560x1440). The same happens on Series X at the stock 2160p output: an allocation of `0x1fe0000` bytes (3840x2176 R11G11B10), found by Yoshi-233 below and reproduced here. Series X at the 1440p output, whose full-size scene is the title's own, runs. ## The change DLAA runs only where its full-size scene fits: Series X with the 1440p output. Everywhere else (Series S, and Series X at 2160p) it runs at Quality's scale (2/3, the title's own) and the start prints a line that says so. It is set in `run.rs` before Streamline starts, so DLSS, the title's patch and the notice use the same mode, whichever way the game was started (`victory.exe play`, the script launcher, or `VICTORY_DLSS_MODE` set by hand). The other modes do not change. `Mode::for_scene` in `plan.rs` holds the rule, with a test. (The first commit covered Series S only; the second widens it to Series X at 2160p.) ## Runs RTX 3090 24 GB (driver 610.88), i9-14900K, 32 GB, Windows 11, v1.0.2.1, FSR 3 frame generation chosen in F1 unless noted. | Build | How DLAA was chosen | Result | |---|---|---| | main `8fc2254` | `--set VICTORY_DLSS_MODE=dlaa` | stops at `+0x2219650`, 8 s | | main `8fc2254` | the same, frame generation off | stops at `+0x2219650`, 6 s | | main `8fc2254` | F1 menu (`VICTORY_MENU_DLSS=dlaa`) | stops at `+0x2219650`, 10 s | | main `63b902f` | F1, new Series S picture row at 1080 | stops at `+0x2219650`, 8 s | | #679 | `--set` | FSR 3 held off as intended; stops at `+0x2219650`, 6 s | | #681 | F1 menu | FSR 3 held off as intended; stops at `+0x2219650`, 8 s | | main `8fc2254`, **Series X, 1440p output** | F1 menu | runs, in the world | | main `63b902f` and this PR's first commit, **Series X, 2160p output** | F1 menu | stops at `+0x2219650`, `rdx = 0x1fe0000` | | **this**, Series S | `--set`, F1 menu, and F1 at 1080 | runs at Quality, in the world past 75 s | | **this**, Series X, 2160p output | F1 menu | runs at Quality, in the world past 80 s | | **this**, Series X, 1440p output | F1 menu | stays DLAA (2560x1440 scene), in the world past 80 s | I also tried keeping DLAA's scale and giving the title FidelityFX quality mode 1 in place of 0 (native AA). It stopped the same way, so the mode number is not the cause. #679 and #681 switch FSR 3 off for DLAA, but on this PC DLAA alone already stops the title, so neither one prevents the stop. ## One thing for you to decide `63b902f` added a Series S picture row at 1080 that maps to DLAA. With this change that row starts at 720 (Quality) and the start says why. You may want to take the row out, or relabel it. I left the menu as it is. ## Checks - `cargo test --workspace --locked`: 1126 passed, 0 failed. - `cargo clippy --workspace --all-targets --locked -- -D warnings`: only the two errors already on main (`shadow.rs:1708`, `emit/mod.rs:2768`, which #687 fixes); nothing in the files changed here. Found and tested with an AI assistant (Claude Code). Every figure above comes from this PC's own runs and logs. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Yoshi-233 commented 2026-11-28 05:00:37 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Yoshi-233 on 2026-11-28T05:00:37Z.


I captured a related Series X allocation failure on an RTX 4070 Ti SUPER 16 GB, driver 617.42, with frame generation off. With Series X and native 3840×2160 DLAA, two runs based on v2026.11.27.8 and .10 stopped before the first in-world frame. Both had the same first three guest stack offsets as the Series S report and the same 64 KiB alignment. The requested size on Series X was 33,423,360 bytes (31.875 MiB).

On .10 the three allocation-info queries immediately before the breakpoint described a 3840×2176, single-mip, single-sample R11G11B10_FLOAT Texture2D with render-target capability. Each returned exactly 33,423,360 bytes and 65,536-byte alignment, matching the size and alignment in the exception registers. The trace records queries and leaves the texture's role unnamed.

A control with the same Series X profile, 3840×2160 output and DLSS Quality reached the boat scene at a verified 2560×1440 input. A separate diagnostic run with the game's temporal path at 2160 also stopped during startup but from a different caller with a 2 MiB request. These results may help distinguish reports that share a breakpoint while exercising different render settings.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7234396374 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/747#issuecomment-7234396374). Originally posted by [Yoshi-233](https://github.com/Yoshi-233) on 2026-11-28T05:00:37Z. --- I captured a related Series X allocation failure on an RTX 4070 Ti SUPER 16 GB, driver 617.42, with frame generation off. With Series X and native 3840×2160 DLAA, two runs based on v2026.11.27.8 and .10 stopped before the first in-world frame. Both had the same first three guest stack offsets as the Series S report and the same 64 KiB alignment. The requested size on Series X was 33,423,360 bytes (31.875 MiB). On .10 the three allocation-info queries immediately before the breakpoint described a 3840×2176, single-mip, single-sample R11G11B10_FLOAT Texture2D with render-target capability. Each returned exactly 33,423,360 bytes and 65,536-byte alignment, matching the size and alignment in the exception registers. The trace records queries and leaves the texture's role unnamed. A control with the same Series X profile, 3840×2160 output and DLSS Quality reached the boat scene at a verified 2560×1440 input. A separate diagnostic run with the game's temporal path at 2160 also stopped during startup but from a different caller with a 2 MiB request. These results may help distinguish reports that share a breakpoint while exercising different render settings.
nick0451 commented 2026-11-28 05:41:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-28T05:41:29Z.


Thanks, that was the missing case. Reproduced here (RTX 3090): Series X, 2160p output, DLAA stops at +0x2219650 with rdx = 0x1fe0000, r8 = 0x10000, the same 33,423,360 bytes you found. The limit is the title's own scene size, not the profile, so e221b34 lets DLAA run only where its full-size scene fits (Series X with the 1440p output) and uses Quality's scale elsewhere. Series X 2160p now runs at Quality, and 1440p stays DLAA; the table above has the runs.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7234824759 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/747#issuecomment-7234824759). Originally posted by [nick0451](https://github.com/nick0451) on 2026-11-28T05:41:29Z. --- Thanks, that was the missing case. Reproduced here (RTX 3090): Series X, 2160p output, DLAA stops at `+0x2219650` with `rdx = 0x1fe0000`, `r8 = 0x10000`, the same 33,423,360 bytes you found. The limit is the title's own scene size, not the profile, so e221b34 lets DLAA run only where its full-size scene fits (Series X with the 1440p output) and uses Quality's scale elsewhere. Series X 2160p now runs at Quality, and 1440p stays DLAA; the table above has the runs.
MoonEyes commented 2026-11-28 13:02:27 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by MoonEyes on 2026-11-28T13:02:27Z.


Tested on an RTX 4060 8 GB: the crash reproduces on main, and did not happen in two 180 s runs with this pull request. PROVISIONAL: one run on main, two with the pull request.

RUN A | 2026-11-28 UTC | MoonEyes | AI-assisted: Claude Code
BASE:      63b902f (main), release build
MACHINE:   RTX 4060 8 GB, desktop | Windows 11 | 32 GB
SETTINGS:  victory.exe run --console series-s --execute, VICTORY_DLSS=1, VICTORY_DLSS_MODE=dlaa, VICTORY_LOG=warn, frame generation off
TARGET:    0x80000003 at +0x2219650 | PREDICTED (written before the run): within 60 s
MEASURED:  unhandled exception 0x80000003 at victory-image+0x2219650, about 21 s after start
END:       crash, read from the log
CACHES:    warm | RUN 1 of 1
VERDICT:   prediction held: crash, address and within 60 s
RUN B | 2026-11-28 UTC | MoonEyes | AI-assisted: Claude Code
BASE:      63b902f + #747 (e221b34), release build
MACHINE:   same as A
SETTINGS:  same as A
TARGET:    no 0x80000003 at +0x2219650 in 180 s, and the fallback line | PREDICTED: both
MEASURED:  "upscaling dlaa needs a scene the size of the output ... quality instead", then scene at 0.6666667; no exception in 180 s.
           At VICTORY_LOG=warn the last line was at about 19 s, so this run alone does not show it was still running: see B2.
END:       time limit (180 s), stopped by the script
CACHES:    warm, after A | RUN 1 of 2
VERDICT:   prediction held
RUN B2 | 2026-11-28 UTC | MoonEyes | AI-assisted: Claude Code
BASE:      same as B
SETTINGS:  same as A, but VICTORY_LOG=info
TARGET:    still running at 180 s | PREDICTED (written before the run): CPU time keeps growing to 180 s, window responding, no 0x80000003
MEASURED:  CPU time sampled every 10 s grew at every sample, 6 s at 10 s to 839 s at 186 s; working set up to 7147 MB;
           the window reported not responding in 1 sample of 17 (95 s), CPU time kept growing through it;
           log lines until the stop; no exception, panic or device lost; one Streamline slEvaluate error at about 147 s
           and one host memory pressure warning at about 11 s
END:       time limit (180 s), stopped by the script
CACHES:    warm | RUN 2 of 2
VERDICT:   held for CPU time and no crash; missed on "window responding" (1 sample of 17)

The only difference between A and B was the binary; A ran first, so B may have had warmer caches. Frame generation was off in all three, as the description says the crash does not need it. Not tested: Series X at 2160p, or with frame generation on.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7239645708 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/747#issuecomment-7239645708). Originally posted by [MoonEyes](https://github.com/MoonEyes) on 2026-11-28T13:02:27Z. --- Tested on an RTX 4060 8 GB: the crash reproduces on `main`, and did not happen in two 180 s runs with this pull request. PROVISIONAL: one run on `main`, two with the pull request. ``` RUN A | 2026-11-28 UTC | MoonEyes | AI-assisted: Claude Code BASE: 63b902f (main), release build MACHINE: RTX 4060 8 GB, desktop | Windows 11 | 32 GB SETTINGS: victory.exe run --console series-s --execute, VICTORY_DLSS=1, VICTORY_DLSS_MODE=dlaa, VICTORY_LOG=warn, frame generation off TARGET: 0x80000003 at +0x2219650 | PREDICTED (written before the run): within 60 s MEASURED: unhandled exception 0x80000003 at victory-image+0x2219650, about 21 s after start END: crash, read from the log CACHES: warm | RUN 1 of 1 VERDICT: prediction held: crash, address and within 60 s ``` ``` RUN B | 2026-11-28 UTC | MoonEyes | AI-assisted: Claude Code BASE: 63b902f + #747 (e221b34), release build MACHINE: same as A SETTINGS: same as A TARGET: no 0x80000003 at +0x2219650 in 180 s, and the fallback line | PREDICTED: both MEASURED: "upscaling dlaa needs a scene the size of the output ... quality instead", then scene at 0.6666667; no exception in 180 s. At VICTORY_LOG=warn the last line was at about 19 s, so this run alone does not show it was still running: see B2. END: time limit (180 s), stopped by the script CACHES: warm, after A | RUN 1 of 2 VERDICT: prediction held ``` ``` RUN B2 | 2026-11-28 UTC | MoonEyes | AI-assisted: Claude Code BASE: same as B SETTINGS: same as A, but VICTORY_LOG=info TARGET: still running at 180 s | PREDICTED (written before the run): CPU time keeps growing to 180 s, window responding, no 0x80000003 MEASURED: CPU time sampled every 10 s grew at every sample, 6 s at 10 s to 839 s at 186 s; working set up to 7147 MB; the window reported not responding in 1 sample of 17 (95 s), CPU time kept growing through it; log lines until the stop; no exception, panic or device lost; one Streamline slEvaluate error at about 147 s and one host memory pressure warning at about 11 s END: time limit (180 s), stopped by the script CACHES: warm | RUN 2 of 2 VERDICT: held for CPU time and no crash; missed on "window responding" (1 sample of 17) ``` The only difference between A and B was the binary; A ran first, so B may have had warmer caches. Frame generation was off in all three, as the description says the crash does not need it. Not tested: Series X at 2160p, or with frame generation on.
nick0451 commented 2026-11-29 00:49:20 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by nick0451 on 2026-11-29T00:49:20Z.


More reports of the crash this PR fixes. I grouped the open issues by faulting address: 0x80000003 at victory-image-…+0x2219650 is the most-reported crash right now. Every report carries the same registers, rdx 0x882000, rsi 0x10000 (and rdi 0x882000). That's the title asking for one 1920×1080 render target (8.5 MB at 64 KiB alignment) and stopping when its pool has no room for it. It's #663's root cause.

Confirmed DLAA (a full-size 1080p scene):

  • #663: Series S, mode=dlaa, crash; mode=quality reaches the world.
  • #1512: Series S 1080p + DLAA crashes and DLSS Quality boots. Same diagnosis, reached independently (the 0x882000 allocation).
  • #1287: Series S 1080p DLAA. A second reporter in the thread confirms that 720p works and only 1080p DLAA crashes.

Same registers, DLSS mode not stated (likely the same): #1694 (Series S, RTX 4060), #1635 (Series S, RTX 3050 6 GB, tried dlaa/performance/quality), #752, #715.

For anyone in those threads: if switching F1's DLSS mode from DLAA to Quality makes the crash go away, it's this one. With this PR, DLAA is only chosen where the full-size scene fits (Series X at 1440p output), and Quality otherwise.

(The second-largest group, 0xc0000005 +0x23cf683, is #628's watchdog. 88244e8 on main fixes it.)

🤖 Generated with Claude Code

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7248375155 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/747#issuecomment-7248375155). Originally posted by [nick0451](https://github.com/nick0451) on 2026-11-29T00:49:20Z. --- More reports of the crash this PR fixes. I grouped the open issues by **faulting** address: `0x80000003 at victory-image-…+0x2219650` is the most-reported crash right now. Every report carries the same registers, `rdx 0x882000, rsi 0x10000` (and `rdi 0x882000`). That's the title asking for one 1920×1080 render target (8.5 MB at 64 KiB alignment) and stopping when its pool has no room for it. It's #663's root cause. **Confirmed DLAA (a full-size 1080p scene):** - #663: Series S, `mode=dlaa`, crash; `mode=quality` reaches the world. - #1512: Series S 1080p + DLAA crashes and DLSS Quality boots. Same diagnosis, reached independently (the `0x882000` allocation). - #1287: Series S 1080p DLAA. A second reporter in the thread confirms that 720p works and only 1080p DLAA crashes. **Same registers, DLSS mode not stated (likely the same):** #1694 (Series S, RTX 4060), #1635 (Series S, RTX 3050 6 GB, tried dlaa/performance/quality), #752, #715. For anyone in those threads: if switching F1's DLSS mode from DLAA to Quality makes the crash go away, it's this one. With this PR, DLAA is only chosen where the full-size scene fits (Series X at 1440p output), and Quality otherwise. (The second-largest group, `0xc0000005 +0x23cf683`, is #628's watchdog. `88244e8` on main fixes it.) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
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
trustno1-coder/VIctory-NVIDIA!747
No description provided.