Make VICTORY_ALIAS_TARGETS opt-in (=1) until DiscardResource/DCC clearing is verified #2042

Merged
mikael-jarvinen merged 1 commit from upstream-pr/2042 into main 2026-11-30 14:12:04 +00:00
mikael-jarvinen commented 2026-11-29 08:17:01 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mikael-jarvinen on 2026-11-29T08:17:01Z.


Follow-up to #1147, rebased cleanly onto main (4d98ca87).

Context

4d98ca87 already added physical-page ownership tracking (alias_tracker.record_touch) to emit intra-list aliasing barriers, which supersedes the earlier host.rs barrier part of this PR.

However, VICTORY_ALIAS_TARGETS is still on by default while aliased render targets/depth buffers do not yet emit DiscardResource on ownership transfer to clear hardware DCC/compression metadata. On RTX 3080 (Series X 1440p, DLSS Performance), turning VICTORY_ALIAS_TARGETS off eliminated random bright green/red lights in window reflections.

Change

  • Make VICTORY_ALIAS_TARGETS opt-in (VICTORY_ALIAS_TARGETS=1 enables) until full DiscardResource/DCC clearing is verified artifact-free.

Verification

  • Hardware: NVIDIA RTX 3080 10 GB + Ryzen 7 7800X3D, Windows 11, driver 621.14, --release build, 1440p DLSS Performance.
  • In-game: Window reflections rendered cleanly with zero green/red artifacts once VICTORY_ALIAS_TARGETS was off.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5548939812 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042). Originally posted by [mikael-jarvinen](https://github.com/mikael-jarvinen) on 2026-11-29T08:17:01Z. --- Follow-up to #1147, rebased cleanly onto `main` (`4d98ca87`). ### Context `4d98ca87` already added physical-page ownership tracking (`alias_tracker.record_touch`) to emit intra-list aliasing barriers, which supersedes the earlier `host.rs` barrier part of this PR. However, `VICTORY_ALIAS_TARGETS` is still **on by default** while aliased render targets/depth buffers do not yet emit `DiscardResource` on ownership transfer to clear hardware DCC/compression metadata. On RTX 3080 (Series X 1440p, DLSS Performance), turning `VICTORY_ALIAS_TARGETS` off eliminated random bright green/red lights in window reflections. ### Change - Make `VICTORY_ALIAS_TARGETS` **opt-in** (`VICTORY_ALIAS_TARGETS=1` enables) until full `DiscardResource`/DCC clearing is verified artifact-free. ### Verification - **Hardware:** NVIDIA RTX 3080 10 GB + Ryzen 7 7800X3D, Windows 11, driver 621.14, `--release` build, 1440p DLSS Performance. - **In-game:** Window reflections rendered cleanly with zero green/red artifacts once `VICTORY_ALIAS_TARGETS` was off.
Dukestar69 commented 2026-11-29 10:32:13 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-29T10:32:13Z.

Review: APPROVED


Tested locally merged onto main (829188e9).

  • Merge: Clean minimal change in crates/victory-gpu/src/alias_rt.rs flipping VICTORY_ALIAS_TARGETS to opt-in (=1) and updating the startup log string.
  • Tests (RTX 5090): cargo test -p victory-gpu --lib resource:: passed (44 passed; 0 failed; 1 ignored, including is_aliased_ignores_dying_target_with_zero_refcount and an_alias_source_is_held_after_the_title_releases_it) with 0 new warnings.

Sensible safety default while DCC/DiscardResource clearing on aliased render targets is still being verified. LGTM.

Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6102485537 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#pullrequestreview-6102485537). Originally posted by [Dukestar69](https://github.com/Dukestar69) on 2026-11-29T10:32:13Z. **Review:** APPROVED --- Tested locally merged onto `main` (`829188e9`). - **Merge**: Clean minimal change in `crates/victory-gpu/src/alias_rt.rs` flipping `VICTORY_ALIAS_TARGETS` to opt-in (`=1`) and updating the startup log string. - **Tests (RTX 5090)**: `cargo test -p victory-gpu --lib resource::` passed (`44 passed; 0 failed; 1 ignored`, including `is_aliased_ignores_dying_target_with_zero_refcount` and `an_alias_source_is_held_after_the_title_releases_it`) with 0 new warnings. Sensible safety default while DCC/`DiscardResource` clearing on aliased render targets is still being verified. LGTM. Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
botto854 commented 2026-11-29 11:20:54 +00:00 (Migrated from github.com)

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


Confirming on a 24 GB card: VICTORY_ALIAS_TARGETS=0 removes the colored spots in window reflections here too.

Setup: RTX 4090 24 GB (driver 617.14), i9-14900K, 32 GB RAM, Windows 11 build 26300 (native), Series X, 2560x1440, DLAA, DLSS frame generation 2X. Release build of v2026.11.29.01 (829188e9) plus the #2081 address-space fix (#2263), which does not touch rendering.

  • With aliasing on (default): orange/colored patches in the window reflections in the opening prison scene.
  • With VICTORY_ALIAS_TARGETS=0: same scene, patches gone, no new crashes.log entry.
  • Cost, two runs compared (not the identical camera path, so rough): peak VRAM 17791 MB on vs 18232 MB off (budget 22879 MB), so about +0.4 GB. Scene fps 15-27 in both; on this setup the frame time is dominated by the CPU-side copies, not the GPU.

So on a 24 GB card the opt-in default costs little. On 8-10 GB cards the extra VRAM may matter more.

(Log comparison done with Claude Code.)

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255049614 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7255049614). Originally posted by [botto854](https://github.com/botto854) on 2026-11-29T11:20:54Z. --- Confirming on a 24 GB card: `VICTORY_ALIAS_TARGETS=0` removes the colored spots in window reflections here too. **Setup:** RTX 4090 24 GB (driver 617.14), i9-14900K, 32 GB RAM, Windows 11 build 26300 (native), Series X, 2560x1440, DLAA, DLSS frame generation 2X. Release build of v2026.11.29.01 (`829188e9`) plus the #2081 address-space fix (#2263), which does not touch rendering. - **With aliasing on (default):** orange/colored patches in the window reflections in the opening prison scene. - **With `VICTORY_ALIAS_TARGETS=0`:** same scene, patches gone, no new `crashes.log` entry. - **Cost, two runs compared (not the identical camera path, so rough):** peak VRAM 17791 MB on vs 18232 MB off (budget 22879 MB), so about +0.4 GB. Scene fps 15-27 in both; on this setup the frame time is dominated by the CPU-side copies, not the GPU. So on a 24 GB card the opt-in default costs little. On 8-10 GB cards the extra VRAM may matter more. (Log comparison done with Claude Code.)
CubanLegend commented 2026-11-29 12:22:06 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CubanLegend on 2026-11-29T12:22:06Z.


Follow-up to #1147, rebased cleanly onto main (4d98ca87).

Context

4d98ca87 already added physical-page ownership tracking (alias_tracker.record_touch) to emit intra-list aliasing barriers, which supersedes the earlier host.rs barrier part of this PR.

However, VICTORY_ALIAS_TARGETS is still on by default while aliased render targets/depth buffers do not yet emit DiscardResource on ownership transfer to clear hardware DCC/compression metadata. On RTX 3080 (Series X 1440p, DLSS Performance), turning VICTORY_ALIAS_TARGETS off eliminated random bright green/red lights in window reflections.

Change

  • Make VICTORY_ALIAS_TARGETS opt-in (VICTORY_ALIAS_TARGETS=1 enables) until full DiscardResource/DCC clearing is verified artifact-free.

Verification

  • Hardware: NVIDIA RTX 3080 10 GB + Ryzen 7 7800X3D, Windows 11, driver 621.14, --release build, 1440p DLSS Performance.
  • In-game: Window reflections rendered cleanly with zero green/red artifacts once VICTORY_ALIAS_TARGETS was off.

Confirmed on 980X3D RTX 4080, Series X 4K with DLSS Performance: green/red speckled reflections on glass, car paint and puddles with aliasing on; gone with VICTORY_ALIAS_TARGETS=0.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7255761085 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7255761085). Originally posted by [CubanLegend](https://github.com/CubanLegend) on 2026-11-29T12:22:06Z. --- > Follow-up to #1147, rebased cleanly onto `main` (`4d98ca87`). > > ### Context > `4d98ca87` already added physical-page ownership tracking (`alias_tracker.record_touch`) to emit intra-list aliasing barriers, which supersedes the earlier `host.rs` barrier part of this PR. > > However, `VICTORY_ALIAS_TARGETS` is still **on by default** while aliased render targets/depth buffers do not yet emit `DiscardResource` on ownership transfer to clear hardware DCC/compression metadata. On RTX 3080 (Series X 1440p, DLSS Performance), turning `VICTORY_ALIAS_TARGETS` off eliminated random bright green/red lights in window reflections. > > ### Change > * Make `VICTORY_ALIAS_TARGETS` **opt-in** (`VICTORY_ALIAS_TARGETS=1` enables) until full `DiscardResource`/DCC clearing is verified artifact-free. > > ### Verification > * **Hardware:** NVIDIA RTX 3080 10 GB + Ryzen 7 7800X3D, Windows 11, driver 621.14, `--release` build, 1440p DLSS Performance. > * **In-game:** Window reflections rendered cleanly with zero green/red artifacts once `VICTORY_ALIAS_TARGETS` was off. Confirmed on 980X3D RTX 4080, Series X 4K with DLSS Performance: green/red speckled reflections on glass, car paint and puddles with aliasing on; gone with VICTORY_ALIAS_TARGETS=0.
dyshay commented 2026-11-29 13:05:13 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by dyshay on 2026-11-29T13:05:13Z.


Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs, on top of 829188e9 plus a couple of local fixes). Read the full diff first: no network, process spawning, binaries, build/CI/dependency changes or game data. Builds with --profile diag --features diagnostics; clean cherry-pick. In-game runs on an RTX 4090 (Series X 1440p and Series S, DLSS Quality) are queued; I'll check the window reflections and post frame times and a picture comparison here.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7256278437 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7256278437). Originally posted by [dyshay](https://github.com/dyshay) on 2026-11-29T13:05:13Z. --- Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA), branch `janus-prs`, on top of 829188e9 plus a couple of local fixes). Read the full diff first: no network, process spawning, binaries, build/CI/dependency changes or game data. Builds with `--profile diag --features diagnostics`; clean cherry-pick. In-game runs on an RTX 4090 (Series X 1440p and Series S, DLSS Quality) are queued; I'll check the window reflections and post frame times and a picture comparison here.
remie1529 commented 2026-11-29 14:56:11 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by remie1529 on 2026-11-29T14:56:11Z.


Confirmed on RTX 4070 (driver 616.92, Windows 11, Series X 2560x1440, DLSS Performance, DLSS FG 2x, base \829188e): setting \VICTORY_ALIAS_TARGETS=0\ (alongside \VICTORY_AMBIENT_CHROMA_SCRUB=1) eliminated the bright acid-green glows indoors (books, ladder, wall edges) without needing to rebuild.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7257690514 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7257690514). Originally posted by [remie1529](https://github.com/remie1529) on 2026-11-29T14:56:11Z. --- Confirmed on RTX 4070 (driver 616.92, Windows 11, Series X 2560x1440, DLSS Performance, DLSS FG 2x, base \829188e\): setting \VICTORY_ALIAS_TARGETS=0\ (alongside \VICTORY_AMBIENT_CHROMA_SCRUB=1\) eliminated the bright acid-green glows indoors (books, ladder, wall edges) without needing to rebuild.
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!2042
No description provided.