native_1440p: size UI pool for fixed 2560x1440 targets on non-16:9 monitors #2060

Closed
steven-seagull27 wants to merge 1 commit from upstream-pr/2060 into main
steven-seagull27 commented 2026-11-29 08:52:43 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by steven-seagull27 on 2026-11-29T08:52:43Z.


Fixes #2055.

Root cause

#1808 (16576c03) updated UI_POOL in apps/victory/src/native_1440p.rs from ui_surface_bytes(WIDTH, HEIGHT) (2560x1440) to ui_surface_bytes(width(), height()) (the monitor's aspect-matched output size).

However, SDR_MODE is intentionally left at stock 3840x2160 (0c0d4662), so the UI setup at 0x247AD10 always allocates:

  • 2x 3840x2160 legacy UI surfaces = 0x3FC0000 bytes
  • 2x 2560x1440 UI targets = 0x1E00000 bytes
  • Total = 0x5DC0000 bytes (93.75 MiB)

It then asserts at 0x247AF25 that no more than 0x1FFFFF bytes remain unused in the pool.

When width() x height() differs from 2560x1440:

  • Wider monitors (e.g. 21:9 3440x1440): UI_POOL was sized to 0x6A00000 (106 MiB), leaving 0x6A00000 - 0x5DC0000 = 0xC40000 unused (> 0x1FFFFF), triggering the int3 at +0x247af2d with rax = 0x0000000000c40000 reported in #2055.
  • Narrower monitors (e.g. 16:10 2304x1440): UI_POOL was sized to 0x5C00000 (92 MiB) < 0x5DC0000, under-allocating the pool and triggering the allocator's int3 at +0x56a2afd.

Fix

  • Extract ui_pool_size() in apps/victory/src/native_1440p.rs using DEFAULT.0 x DEFAULT.1 (2560x1440) alongside LEGACY_UI_WIDTH x LEGACY_UI_HEIGHT (3840x2160), keeping UI_POOL at 0x5E00000 (94 MiB; leftover 0x40000 <= 0x1FFFFF) across all monitor aspect ratios while keeping the non-16:9 SETTINGS_COPY output width/height from #1808.
  • Add unit test ui_pool_size_matches_legacy_and_default_targets verifying the exact surface math, pool bound (<= 0x1FFFFF), and the 21:9 over-allocation (0xC40000) / 16:10 under-allocation regressions.

Verification

  • cargo test --locked -p victory --bin victory -- native_1440p --nocapture (all native_1440p unit tests pass, including ui_pool_size_matches_legacy_and_default_targets).
  • cargo clippy --locked -p victory --bins --tests (zero warnings in native_1440p.rs).
  • git diff --check clean.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5549172407 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060). Originally posted by [steven-seagull27](https://github.com/steven-seagull27) on 2026-11-29T08:52:43Z. --- Fixes #2055. ### Root cause `#1808` (`16576c03`) updated `UI_POOL` in `apps/victory/src/native_1440p.rs` from `ui_surface_bytes(WIDTH, HEIGHT)` (`2560x1440`) to `ui_surface_bytes(width(), height())` (the monitor's aspect-matched output size). However, `SDR_MODE` is intentionally left at stock `3840x2160` (`0c0d4662`), so the UI setup at `0x247AD10` always allocates: - 2x `3840x2160` legacy UI surfaces = `0x3FC0000` bytes - 2x `2560x1440` UI targets = `0x1E00000` bytes - Total = `0x5DC0000` bytes (93.75 MiB) It then asserts at `0x247AF25` that no more than `0x1FFFFF` bytes remain unused in the pool. When `width() x height()` differs from `2560x1440`: - **Wider monitors (e.g. 21:9 `3440x1440`):** `UI_POOL` was sized to `0x6A00000` (106 MiB), leaving `0x6A00000 - 0x5DC0000 = 0xC40000` unused (`> 0x1FFFFF`), triggering the `int3` at `+0x247af2d` with `rax = 0x0000000000c40000` reported in #2055. - **Narrower monitors (e.g. 16:10 `2304x1440`):** `UI_POOL` was sized to `0x5C00000` (92 MiB) `< 0x5DC0000`, under-allocating the pool and triggering the allocator's `int3` at `+0x56a2afd`. ### Fix - Extract `ui_pool_size()` in `apps/victory/src/native_1440p.rs` using `DEFAULT.0 x DEFAULT.1` (`2560x1440`) alongside `LEGACY_UI_WIDTH x LEGACY_UI_HEIGHT` (`3840x2160`), keeping `UI_POOL` at `0x5E00000` (94 MiB; leftover `0x40000 <= 0x1FFFFF`) across all monitor aspect ratios while keeping the non-16:9 `SETTINGS_COPY` output width/height from `#1808`. - Add unit test `ui_pool_size_matches_legacy_and_default_targets` verifying the exact surface math, pool bound (`<= 0x1FFFFF`), and the 21:9 over-allocation (`0xC40000`) / 16:10 under-allocation regressions. ### Verification - `cargo test --locked -p victory --bin victory -- native_1440p --nocapture` (all `native_1440p` unit tests pass, including `ui_pool_size_matches_legacy_and_default_targets`). - `cargo clippy --locked -p victory --bins --tests` (zero warnings in `native_1440p.rs`). - `git diff --check` clean.
rgroenewoudt commented 2026-11-29 10:22:01 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rgroenewoudt on 2026-11-29T10:22:01Z.


Tested: this fixes the start crash for me.

Setup: AMD Radeon RX 9070 16 GB, Windows 11 build 26300 (native), Series X, release build. Started with scripts\play-foxhound.ps1 (VICTORY_NATIVE_1440P=1). The monitor is 2752x1152, so it's wider than 16:9 and lower than 1440, a third case beside the two in the description. The output size became 2752x1152 (images/native-2752x1152-sdr).

Before (829188e9, 3/3 starts): unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x56a2afd, called through XMemAlloc from create_committed. The UI pool was asked as one 90 MB block (kind 0x203000, flags 0x3: 1 times, 90 MB, last 0xe1c800000+0x5a00000), so 0x5A00000 < 0x5DC0000: the under-allocation case. The title's crash context says Game State: System Init, TileHeap: total (0Mb), so it isn't #2081.

After (829188e9 + fefa2be7): 2/2 starts reach the game. cargo test -p victory --bin victory -- native_1440p: 6 passed.

Remaining: at 2752x1152 the game shows many visual artifacts. With -More VICTORY_NATIVE_SIZE=2560x1440 it starts and looks fine. So the crash is fixed here, but the non-16:9 output size from #1808 still doesn't render cleanly on this monitor.


Tested locally with AI assistance (Claude Code); I checked the results before posting.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7254386445 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060#issuecomment-7254386445). Originally posted by [rgroenewoudt](https://github.com/rgroenewoudt) on 2026-11-29T10:22:01Z. --- Tested: this fixes the start crash for me. **Setup:** AMD Radeon RX 9070 16 GB, Windows 11 build 26300 (native), Series X, release build. Started with `scripts\play-foxhound.ps1` (`VICTORY_NATIVE_1440P=1`). The monitor is **2752x1152**, so it's wider than 16:9 *and* lower than 1440, a third case beside the two in the description. The output size became 2752x1152 (`images/native-2752x1152-sdr`). **Before** (`829188e9`, 3/3 starts): `unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x56a2afd`, called through `XMemAlloc` from `create_committed`. The UI pool was asked as one 90 MB block (`kind 0x203000, flags 0x3: 1 times, 90 MB, last 0xe1c800000+0x5a00000`), so `0x5A00000 < 0x5DC0000`: the under-allocation case. The title's crash context says `Game State: System Init`, `TileHeap: total (0Mb)`, so it isn't #2081. **After** (`829188e9` + `fefa2be7`): 2/2 starts reach the game. `cargo test -p victory --bin victory -- native_1440p`: 6 passed. **Remaining:** at 2752x1152 the game shows many visual artifacts. With `-More VICTORY_NATIVE_SIZE=2560x1440` it starts and looks fine. So the crash is fixed here, but the non-16:9 output size from #1808 still doesn't render cleanly on this monitor. --- <sub>Tested locally with AI assistance (Claude Code); I checked the results before posting.</sub>
Halfect commented 2026-11-29 11:06:00 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Halfect on 2026-11-29T11:06:00Z.

Review: APPROVED


LGTM. I independently reproduced #2055 on a 3440x1440 display: the crash at +0x247af2d had rax = 0xC40000, exactly matching the unused-pool calculation in this PR. The fixed pool size preserves the required legacy/default surfaces and the 0x40000 slack without undoing the aspect-matched output behavior.

Local verification at fefa2be793f4e397a0e48989cdd1cda4e1a95813:

  • Targeted native_1440p tests: 6 passed, 0 failed, including the new UI-pool regression test.
  • cargo clippy --locked -p victory --bins --tests: completed successfully; only unrelated existing warnings elsewhere in the workspace.
  • cargo test --locked -p victory --bin victory: 79 passed, 0 failed.
  • git diff --check origin/main..HEAD: clean.

This review covers source inspection and the test suites above; I did not claim an end-to-end game run from a fresh build of this PR. The release-build workaround was tested separately.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6102593585 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060#pullrequestreview-6102593585). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-29T11:06:00Z. **Review:** APPROVED --- LGTM. I independently reproduced #2055 on a 3440x1440 display: the crash at `+0x247af2d` had `rax = 0xC40000`, exactly matching the unused-pool calculation in this PR. The fixed pool size preserves the required legacy/default surfaces and the `0x40000` slack without undoing the aspect-matched output behavior. Local verification at `fefa2be793f4e397a0e48989cdd1cda4e1a95813`: - Targeted `native_1440p` tests: **6 passed, 0 failed**, including the new UI-pool regression test. - `cargo clippy --locked -p victory --bins --tests`: completed successfully; only unrelated existing warnings elsewhere in the workspace. - `cargo test --locked -p victory --bin victory`: **79 passed, 0 failed**. - `git diff --check origin/main..HEAD`: clean. This review covers source inspection and the test suites above; I did not claim an end-to-end game run from a fresh build of this PR. The release-build workaround was tested separately.
Halfect commented 2026-11-29 11:39:08 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Halfect on 2026-11-29T11:39:08Z.


Additional hardware validation on fefa2be793f4e397a0e48989cdd1cda4e1a95813:

Setup: Ryzen 7 9800X3D, RTX 5080 (driver 621.24), 3440x1440 21:9 display, Windows, Series X, cargo build --release --locked -p victory. Launched through scripts\play-foxhound.ps1 with DLSS Quality and frame generation off. VICTORY_NATIVE_SIZE was explicitly unset for the test child process, so this did not use the 2560x1440 override as a workaround; mouse/keyboard input was enabled separately to operate the title.

The log confirms the native-3440x1440-upscaler-quality-sdr image and display 3440x1440 SDR. After confirming the current profile with Enter, the run passed the Rockstar logo and reached the real-time 3D prison prologue with subtitles. It ran for about 10 minutes without the previous +0x247af2d / rax=0xC40000 System Init crash. Shutdown was a normal window-close path with exit code 0; the final pipeline summary reported 0 host pipeline failures and 0 untranslated shaders.

So the startup fix also works on this RTX 5080 / 3440x1440 configuration beyond the first screen. The prologue still showed variable performance and strong overexposure, but those are separate rendering/performance issues from the UI-pool sizing fix validated here.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255257092 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060#issuecomment-7255257092). Originally posted by [Halfect](https://github.com/Halfect) on 2026-11-29T11:39:08Z. --- Additional hardware validation on `fefa2be793f4e397a0e48989cdd1cda4e1a95813`: **Setup:** Ryzen 7 9800X3D, RTX 5080 (driver 621.24), 3440x1440 21:9 display, Windows, Series X, `cargo build --release --locked -p victory`. Launched through `scripts\play-foxhound.ps1` with DLSS Quality and frame generation off. `VICTORY_NATIVE_SIZE` was explicitly unset for the test child process, so this did not use the 2560x1440 override as a workaround; mouse/keyboard input was enabled separately to operate the title. The log confirms the `native-3440x1440-upscaler-quality-sdr` image and `display 3440x1440 SDR`. After confirming the current profile with Enter, the run passed the Rockstar logo and reached the real-time 3D prison prologue with subtitles. It ran for about 10 minutes without the previous `+0x247af2d` / `rax=0xC40000` System Init crash. Shutdown was a normal window-close path with exit code 0; the final pipeline summary reported 0 host pipeline failures and 0 untranslated shaders. So the startup fix also works on this RTX 5080 / 3440x1440 configuration beyond the first screen. The prologue still showed variable performance and strong overexposure, but those are separate rendering/performance issues from the UI-pool sizing fix validated here.
AsteroidusTv commented 2026-11-29 11:42:54 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AsteroidusTv on 2026-11-29T11:42:54Z.


Update: temporary workaround confirmed working on this PC

The PC owner has now tested the published v2026.11.29.01 release with the same game files and confirms that the following command resolves the startup crash on this RTX 4090 / 3440x1440 setup:

.\victory.exe play --set VICTORY_NATIVE_SIZE=2560x1440

This is user-confirmed validation of the 2560x1440 workaround, not a test of a build containing this PR or a claim of long-term stability. The earlier statement below that the workaround had not been executed on this PC is now superseded by this user test.


Original static investigation (before the user test)

Independent static confirmation of #2055 on an RTX 4090 / 3440x1440 machine, using the published v2026.11.29.01 executable. This matches the precise UI-pool regression addressed here, rather than just sharing STATUS_BREAKPOINT.

Scope of validation: read-only inspection of the existing executable, generated PE images and three saved crash reports, plus an isolated arithmetic reproduction. I did not launch the release binary, build/run this PR, or validate the fix in-game. The owner reports that a release downloaded on November 27 worked with the same game files; the exact November 27 release suffix is not established. The November 27 play log independently shows more than 13 minutes of rendering activity.

Environment and provenance

  • GPU: NVIDIA GeForce RTX 4090, 24 GB; Streamline reports driver 610.88.0.
  • CPU: Intel Core i9-13900KS, 24 cores / 32 logical processors.
  • RAM: 127.69 GiB usable.
  • Windows build 26200.9974, version 25H2.
  • Series X, title v1.0.2.1 / 930.048.020-vb_sub_story; loader build ID b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93.
  • Output selected by this release: 3440x1440 SDR; DLSS Quality; frame generation off.
  • victory.exe: 15,784,448 bytes; SHA-256 0d3dae51870bad44aa529c9fddd762a513d677ff8d08147134968ba7ed67dffd (matches release asset digest); Authenticode NotSigned.
  • No VICTORY* variables in the inspecting process, user environment or machine environment. victory-settings.txt is absent. The saved play log records the launcher's effective switches, including VICTORY_NATIVE_1440P=1, VICTORY_SOFT_VIEWS=copies and VICTORY_FRAME_INTERVAL_US=1000.

Local evidence

Three saved starts on November 29 at 12:29:06, 12:29:17 and 12:29:35 UTC all have:

Unhandled exception 0x80000003
victory-image-b99f876b74d4a77f.dll+0x247af2d
rax 0xc40000
Game State: System Init
Frame: 0

Their title-side stack offsets are identical:
0x247af2d -> 0x2479430 -> 0x19f4f54 -> 0x580437e ->
0x43a4911 -> 0x224070b -> 0x23cf00a -> 0x2215eca.

The current play log reports the 106 MiB allocation immediately before the crash:

title memory asked for as protection 0x4, kind 0x203000, flags 0x3:
1 times, 106 MB, last 0xe1c800000+0x6a00000

Read-only PE section/RVA parsing confirms the following in the actual generated image under cache/images/native-3440x1440-upscaler-quality-sdr:

  • UI_POOL at RVA 0x247AD4A loads 0x6A00000.
  • The image's SDR mode at 0x615C100 is 3840x2160.
  • The settings cave's output pair is 3440x1440.
  • The assertion at 0x247AF25 compares RAX with 0x1FFFFF, branches over the following breakpoint when the unsigned value is within that limit, and otherwise reaches INT3 at 0x247AF2D.
  • The same assertion is present in the original game image; it was not inserted by the diagnostic.

The retained November 27 cache (native-1440p-upscaler-quality-sdr) instead has a 2560x1440 SDR mode and UI_POOL=0x1E00000 (30 MiB). This predates the later UI-layout changes: it should not be described as having the proposed 94 MiB pool already. The old log also reports 2560x1440 to the title.

Isolated reproduction and review of the proposed fix

For these one-mip, single-sample RGBA8 surfaces, the tagged texture layout uses 128x128 tiles. Reproducing its alignment arithmetic independently gives:

Calculation Bytes
Two legacy 3840x2160 surfaces 0x3FC0000
Two fixed 2560x1440 UI targets 0x1E00000
Total used under the current stock SDR mode 0x5DC0000
Monitor-dependent pool at 3440x1440, aligned to 2 MiB 0x6A00000
Current leftover 0xC40000, exactly matching RAX in all 3 crashes
Maximum leftover accepted by the actual assertion 0x1FFFFF
Pool with this PR's fixed DEFAULT target dimensions 0x5E00000
Leftover after this PR's calculation 0x40000, within the limit

The 2304x1440 negative case also reproduces: the old formula gives 0x5C00000, below the required 0x5DC0000. All local static/model checks passed. The reviewed patch is head fefa2be793 on release base 829188e969. Rust/Cargo tests were not run locally because the toolchain is not available.

This supports the interaction between #1808 (monitor-dependent pool sizing) and the stock-SDR/legacy-layout changes in 0c0d4662. It provides a direct explanation for this machine's frame-zero assertion. The 1 ms setting was already present in the working November 27 log, so changing the FPS cap is not needed to explain this particular failure.

Workaround and limits

Forcing VICTORY_NATIVE_SIZE=2560x1440 through play's --set option is a relevant reversible workaround, corroborated by #2073 and other reports under #2055. It was not executed on this PC. Changing only --res 1440 does not force 16:9 in this release, since that profile now follows the monitor's aspect ratio.

This confirmation concerns the 3440x1440 +0x247AF2D / RAX=0xC40000 case. It does not establish a fix for unrelated XMem reservation failures (#2217/#2081), or the wider-than-stock 5120x1440 case handled separately by #2210.

No game files, memory dumps, account identifiers, or personal filesystem paths are included in this report. No security settings were changed and no crash upload was enabled.

Prepared with Codex assistance from the local static checks described above.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255299977 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060#issuecomment-7255299977). Originally posted by [AsteroidusTv](https://github.com/AsteroidusTv) on 2026-11-29T11:42:54Z. --- ### Update: temporary workaround confirmed working on this PC The PC owner has now tested the published v2026.11.29.01 release with the same game files and confirms that the following command resolves the startup crash on this RTX 4090 / 3440x1440 setup: ```powershell .\victory.exe play --set VICTORY_NATIVE_SIZE=2560x1440 ``` This is user-confirmed validation of the **2560x1440 workaround**, not a test of a build containing this PR or a claim of long-term stability. The earlier statement below that the workaround had not been executed on this PC is now superseded by this user test. --- ### Original static investigation (before the user test) Independent static confirmation of #2055 on an RTX 4090 / 3440x1440 machine, using the published v2026.11.29.01 executable. This matches the precise UI-pool regression addressed here, rather than just sharing STATUS_BREAKPOINT. **Scope of validation:** read-only inspection of the existing executable, generated PE images and three saved crash reports, plus an isolated arithmetic reproduction. I did not launch the release binary, build/run this PR, or validate the fix in-game. The owner reports that a release downloaded on November 27 worked with the same game files; the exact November 27 release suffix is not established. The November 27 play log independently shows more than 13 minutes of rendering activity. ### Environment and provenance - GPU: NVIDIA GeForce RTX 4090, 24 GB; Streamline reports driver 610.88.0. - CPU: Intel Core i9-13900KS, 24 cores / 32 logical processors. - RAM: 127.69 GiB usable. - Windows build 26200.9974, version 25H2. - Series X, title v1.0.2.1 / 930.048.020-vb_sub_story; loader build ID b99f876b74d4a77f03af5f878223b27bd647b5c35a79d5decd9f716504239e93. - Output selected by this release: 3440x1440 SDR; DLSS Quality; frame generation off. - victory.exe: 15,784,448 bytes; SHA-256 0d3dae51870bad44aa529c9fddd762a513d677ff8d08147134968ba7ed67dffd (matches release asset digest); Authenticode NotSigned. - No VICTORY* variables in the inspecting process, user environment or machine environment. victory-settings.txt is absent. The saved play log records the launcher's effective switches, including VICTORY_NATIVE_1440P=1, VICTORY_SOFT_VIEWS=copies and VICTORY_FRAME_INTERVAL_US=1000. ### Local evidence Three saved starts on November 29 at 12:29:06, 12:29:17 and 12:29:35 UTC all have: ```text Unhandled exception 0x80000003 victory-image-b99f876b74d4a77f.dll+0x247af2d rax 0xc40000 Game State: System Init Frame: 0 ``` Their title-side stack offsets are identical: 0x247af2d -> 0x2479430 -> 0x19f4f54 -> 0x580437e -> 0x43a4911 -> 0x224070b -> 0x23cf00a -> 0x2215eca. The current play log reports the 106 MiB allocation immediately before the crash: ```text title memory asked for as protection 0x4, kind 0x203000, flags 0x3: 1 times, 106 MB, last 0xe1c800000+0x6a00000 ``` Read-only PE section/RVA parsing confirms the following in the actual generated image under cache/images/native-3440x1440-upscaler-quality-sdr: - UI_POOL at RVA 0x247AD4A loads 0x6A00000. - The image's SDR mode at 0x615C100 is 3840x2160. - The settings cave's output pair is 3440x1440. - The assertion at 0x247AF25 compares RAX with 0x1FFFFF, branches over the following breakpoint when the unsigned value is within that limit, and otherwise reaches INT3 at 0x247AF2D. - The same assertion is present in the original game image; it was not inserted by the diagnostic. The retained November 27 cache (native-1440p-upscaler-quality-sdr) instead has a 2560x1440 SDR mode and UI_POOL=0x1E00000 (30 MiB). This predates the later UI-layout changes: it should not be described as having the proposed 94 MiB pool already. The old log also reports 2560x1440 to the title. ### Isolated reproduction and review of the proposed fix For these one-mip, single-sample RGBA8 surfaces, the tagged texture layout uses 128x128 tiles. Reproducing its alignment arithmetic independently gives: | Calculation | Bytes | | --- | --- | | Two legacy 3840x2160 surfaces | 0x3FC0000 | | Two fixed 2560x1440 UI targets | 0x1E00000 | | Total used under the current stock SDR mode | 0x5DC0000 | | Monitor-dependent pool at 3440x1440, aligned to 2 MiB | 0x6A00000 | | Current leftover | **0xC40000**, exactly matching RAX in all 3 crashes | | Maximum leftover accepted by the actual assertion | 0x1FFFFF | | Pool with this PR's fixed DEFAULT target dimensions | 0x5E00000 | | Leftover after this PR's calculation | **0x40000**, within the limit | The 2304x1440 negative case also reproduces: the old formula gives 0x5C00000, below the required 0x5DC0000. All local static/model checks passed. The reviewed patch is head fefa2be793f4e397a0e48989cdd1cda4e1a95813 on release base 829188e969ffd2907e5867c5d9aca29bd91cb1b6. Rust/Cargo tests were not run locally because the toolchain is not available. This supports the interaction between #1808 (monitor-dependent pool sizing) and the stock-SDR/legacy-layout changes in 0c0d4662. It provides a direct explanation for this machine's frame-zero assertion. The 1 ms setting was already present in the working November 27 log, so changing the FPS cap is not needed to explain this particular failure. ### Workaround and limits Forcing VICTORY_NATIVE_SIZE=2560x1440 through play's --set option is a relevant reversible workaround, corroborated by #2073 and other reports under #2055. It was not executed on this PC. Changing only --res 1440 does not force 16:9 in this release, since that profile now follows the monitor's aspect ratio. This confirmation concerns the 3440x1440 +0x247AF2D / RAX=0xC40000 case. It does not establish a fix for unrelated XMem reservation failures (#2217/#2081), or the wider-than-stock 5120x1440 case handled separately by #2210. No game files, memory dumps, account identifiers, or personal filesystem paths are included in this report. No security settings were changed and no crash upload was enabled. Prepared with Codex assistance from the local static checks described above.
AsteroidusTv commented 2026-11-29 12:01:29 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by AsteroidusTv on 2026-11-29T12:01:29Z.


CI integration follow-up for this PR (reviewed at fefa2be793):

GitHub currently reports mergeable=true / mergeable_state=unstable. There is no merge conflict; the red check is the shared-main CI failure, outside native_1440p.rs.

I traced the existing dependency chain:

  1. This PR's Windows job fails at Clippy on victory-loader/src/crash.rs:804: unwind_copy is unused without diagnostics. The tests never run.
    Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46244680016/job/141289018096

  2. #2019 addresses that first error, but its Windows job then reaches GPU warnings promoted to errors. Applying only that first fix is insufficient.
    Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46248076888/job/141299694865

  3. The current #2048 head 1fb7cad508ded7eadc897a7f731f4da51f2b1625 already includes the loader/shader fixes and GPU/HLE cleanup. Its actual Windows job passes both Clippy configurations, including all features. It then fails only at the three BCPack oracle-parity tests in victory-formats (80 passed, 3 failed, 7 ignored). This is observed CI output, not a local test claim.
    Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46258040018/job/141331086043

  4. #2236, head 18eaf9476cdeb19a47a8ec9c43cfbeb8446a8fe6, fixes the stale scalar BC7 test oracle responsible for those three failures. It removes the skipped u16 and reads all 32 dictionary-index slots, matching the existing production parser. Its author reports 83/83 format tests passing. This is test-only; the production decoder is unchanged.

Concrete integration check performed here: in an isolated local checkout at this PR's exact head, I applied the full base-to-head diff of #2048, then #2236. Both git apply --check operations and git diff --check passed with no conflicts. The result adds 25 files / 68 insertions / 48 deletions over #2060. apps/victory/src/native_1440p.rs, Cargo.lock, and the CI workflow remain byte-identical to #2060, so its UI fix and the existing CI gates are preserved. No checks or failing tests were disabled by this integration work.

Suggested maintainer path: integrate #2048 and #2236, update/rebase this PR onto that base, and rerun the three normal workspace gates. Alternatively the same existing commits can be brought onto this branch, retaining their authorship. I cannot update someone else's PR branch from this account.

Limits: no Rust toolchain is installed on the inspected PC, so I did not run the combined Windows build/test suite. #2048's job stops at victory-formats; later suites have not been demonstrated green for the combined tree. This addresses the observed blocker chain and gives a clean integration candidate, not a claim that the final combined CI is already green.

Separately, the PC owner has now confirmed the release workaround victory.exe play --set VICTORY_NATIVE_SIZE=2560x1440 works on this RTX 4090 / 3440x1440 setup; that result is recorded in the update to my earlier comment.

Prepared with Codex assistance.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255511433 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060#issuecomment-7255511433). Originally posted by [AsteroidusTv](https://github.com/AsteroidusTv) on 2026-11-29T12:01:29Z. --- CI integration follow-up for this PR (reviewed at fefa2be793f4e397a0e48989cdd1cda4e1a95813): GitHub currently reports mergeable=true / mergeable_state=unstable. There is no merge conflict; the red check is the shared-main CI failure, outside native_1440p.rs. I traced the existing dependency chain: 1. This PR's Windows job fails at Clippy on `victory-loader/src/crash.rs:804`: `unwind_copy` is unused without diagnostics. The tests never run. Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46244680016/job/141289018096 2. #2019 addresses that first error, but its Windows job then reaches GPU warnings promoted to errors. Applying only that first fix is insufficient. Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46248076888/job/141299694865 3. The current #2048 head `1fb7cad508ded7eadc897a7f731f4da51f2b1625` already includes the loader/shader fixes and GPU/HLE cleanup. Its actual Windows job **passes both Clippy configurations**, including all features. It then fails only at the three BCPack oracle-parity tests in victory-formats (80 passed, 3 failed, 7 ignored). This is observed CI output, not a local test claim. Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46258040018/job/141331086043 4. #2236, head `18eaf9476cdeb19a47a8ec9c43cfbeb8446a8fe6`, fixes the stale scalar BC7 test oracle responsible for those three failures. It removes the skipped u16 and reads all 32 dictionary-index slots, matching the existing production parser. Its author reports 83/83 format tests passing. This is test-only; the production decoder is unchanged. **Concrete integration check performed here:** in an isolated local checkout at this PR's exact head, I applied the full base-to-head diff of #2048, then #2236. Both `git apply --check` operations and `git diff --check` passed with no conflicts. The result adds 25 files / 68 insertions / 48 deletions over #2060. `apps/victory/src/native_1440p.rs`, `Cargo.lock`, and the CI workflow remain byte-identical to #2060, so its UI fix and the existing CI gates are preserved. No checks or failing tests were disabled by this integration work. Suggested maintainer path: integrate #2048 and #2236, update/rebase this PR onto that base, and rerun the three normal workspace gates. Alternatively the same existing commits can be brought onto this branch, retaining their authorship. I cannot update someone else's PR branch from this account. **Limits:** no Rust toolchain is installed on the inspected PC, so I did not run the combined Windows build/test suite. #2048's job stops at victory-formats; later suites have not been demonstrated green for the combined tree. This addresses the observed blocker chain and gives a clean integration candidate, not a claim that the final combined CI is already green. Separately, the PC owner has now confirmed the release workaround `victory.exe play --set VICTORY_NATIVE_SIZE=2560x1440` works on this RTX 4090 / 3440x1440 setup; that result is recorded in the update to my earlier comment. Prepared with Codex assistance.
Creaa commented 2026-11-29 12:03:49 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Creaa on 2026-11-29T12:03:49Z.


Test report on a 32:9 monitor (5120x1440): this fixes 21:9 here, but a 32:9 main monitor still crashes at start, at a different place.

Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB, Windows 11 26300; main monitor 5120x1440 (32:9). Release build (cargo build --release --locked -p victory), scripts\play-foxhound.ps1 -FrameGen, Series X. Each run: start, 45 s.

Build output size result
main 829188e9 default (follows the monitor: 5120x1440) crash about 6 s in
main 829188e9 VICTORY_NATIVE_SIZE=2560x1440 runs
main 829188e9 VICTORY_NATIVE_SIZE=3440x1440 crash, +0x247af2d (the one this PR fixes)
#2060 fefa2be7 default (5120x1440) crash about 6 s in
#2309 2b1fe786 default (5120x1440) crash about 6 s in
#2309 2b1fe786 VICTORY_NATIVE_SIZE=3440x1440 runs

The 5120x1440 crash, the same on main and both PRs:

VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x56a2afd (breakpoint)
  r12 0x80070057
  #1  victory-image-…dll+0x4deb4ef
  #2  victory.exe+0x1bb74a   #3 victory.exe+0x4e32b4   #4 victory.exe+0x4e3755

r12 holds E_INVALIDARG, so a call into our layer seems to refuse something at this size and the title traps on the result (a guess from the registers; I could not name the frames). A bisect over main (first-parent, then inside the waves) gave 16576c03 (#1808) as the first commit with this crash; 8e81b84c just before it runs.

Update: also tried VICTORY_NATIVE_SIZE=3840x1080 (32:9, under the 3840 width of the UI surfaces) on #2309 2b1fe786: the same crash at +0x56a2afd, so it follows the 32:9 shape, not the width.

Not tested: other 32:9 sizes, whether 5120 is over a limit of the title's (for example its 3840-wide UI surfaces), FG off.

AI use: Claude Code (Claude Opus 5.5) ran the bisect and the test runs and wrote this report.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255539297 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060#issuecomment-7255539297). Originally posted by [Creaa](https://github.com/Creaa) on 2026-11-29T12:03:49Z. --- Test report on a **32:9 monitor (5120x1440)**: this fixes 21:9 here, but a 32:9 main monitor still crashes at start, at a different place. **Setup:** RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB, Windows 11 26300; main monitor 5120x1440 (32:9). Release build (`cargo build --release --locked -p victory`), `scripts\play-foxhound.ps1 -FrameGen`, Series X. Each run: start, 45 s. | Build | output size | result | |---|---|---| | main `829188e9` | default (follows the monitor: 5120x1440) | crash about 6 s in | | main `829188e9` | `VICTORY_NATIVE_SIZE=2560x1440` | runs | | main `829188e9` | `VICTORY_NATIVE_SIZE=3440x1440` | crash, `+0x247af2d` (the one this PR fixes) | | #2060 `fefa2be7` | default (5120x1440) | crash about 6 s in | | #2309 `2b1fe786` | default (5120x1440) | crash about 6 s in | | #2309 `2b1fe786` | `VICTORY_NATIVE_SIZE=3440x1440` | runs | The 5120x1440 crash, the same on main and both PRs: ``` VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x56a2afd (breakpoint) r12 0x80070057 #1 victory-image-…dll+0x4deb4ef #2 victory.exe+0x1bb74a #3 victory.exe+0x4e32b4 #4 victory.exe+0x4e3755 ``` `r12` holds `E_INVALIDARG`, so a call into our layer seems to refuse something at this size and the title traps on the result (a guess from the registers; I could not name the frames). A bisect over main (first-parent, then inside the waves) gave `16576c03` (#1808) as the first commit with this crash; `8e81b84c` just before it runs. **Update:** also tried `VICTORY_NATIVE_SIZE=3840x1080` (32:9, under the 3840 width of the UI surfaces) on #2309 `2b1fe786`: the same crash at `+0x56a2afd`, so it follows the 32:9 shape, not the width. **Not tested:** other 32:9 sizes, whether 5120 is over a limit of the title's (for example its 3840-wide UI surfaces), FG off. AI use: Claude Code (Claude Opus 5.5) ran the bisect and the test runs and wrote this report.
steven-seagull27 commented 2026-11-29 20:35:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by steven-seagull27 on 2026-11-29T20:35:18Z.


Closing this PR as superseded — the fixed 2560x1440 UI pool sizing fix for #2055 landed on main in 33e9fed2 (v2026.11.29.02).

Thanks @Halfect, @AsteroidusTv, and @Creaa for the thorough reviews, arithmetic checks, and monitor testing!

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7262199892 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2060#issuecomment-7262199892). Originally posted by [steven-seagull27](https://github.com/steven-seagull27) on 2026-11-29T20:35:18Z. --- Closing this PR as superseded — the fixed `2560x1440` UI pool sizing fix for #2055 landed on `main` in `33e9fed2` (`v2026.11.29.02`). Thanks @Halfect, @AsteroidusTv, and @Creaa for the thorough reviews, arithmetic checks, and monitor testing!

Pull request closed

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!2060
No description provided.