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

Manually merged
github merged 1 commit from github-bot/gh-2042 into main 2026-11-30 14:17:19 +00:00 AGit
Owner

@⁠mikael-jarvinen on GitHub · 2026-11-29 08:17 UTC · original
mikael-jarvinen:fix-alias-rt-barrier → main · +5 −4 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC

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.
**@⁠mikael-jarvinen** on GitHub · 2026-11-29 08:17 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042) `mikael-jarvinen:fix-alias-rt-barrier` → `main` · +5 −4 · 1 files · 1 commits · merged 2026-11-30 14:12 UTC 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 08:20:48 +00:00
github-bot changed title from [pr-fix][rendering][NVIDIA] Fix missing intra-list aliasing barrier on first aliased RT write and make VICTORY_ALIAS_TARGETS opt-in to Make VICTORY_ALIAS_TARGETS opt-in (=1) until DiscardResource/DCC clearing is verified 2026-11-29 08:33:39 +00:00
github-bot force-pushed github-bot/gh-2042 from 3d3b5d2d9b to f4665d3357 2026-11-29 08:33:40 +00:00 Compare
Author
Owner

@⁠Dukestar69 on GitHub · 2026-11-29 10:32 UTC · original · approved these changes

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).

**@⁠Dukestar69** on GitHub · 2026-11-29 10:32 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#pullrequestreview-6102485537) · **approved these changes** 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).
Author
Owner

@⁠botto854 on GitHub · 2026-11-29 11:20 UTC · original

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.)

**@⁠botto854** on GitHub · 2026-11-29 11:20 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7255049614) 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.)
Author
Owner

@⁠CubanLegend on GitHub · 2026-11-29 12:22 UTC · original

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.

**@⁠CubanLegend** on GitHub · 2026-11-29 12:22 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7255761085) > 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.
Author
Owner

@⁠dyshay on GitHub · 2026-11-29 13:05 UTC · original

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.

**@⁠dyshay** on GitHub · 2026-11-29 13:05 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7256278437) 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.
Author
Owner

@⁠remie1529 on GitHub · 2026-11-29 14:56 UTC · original

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.

**@⁠remie1529** on GitHub · 2026-11-29 14:56 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2042#issuecomment-7257690514) 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.
github manually merged commit 955d853560 into main 2026-11-30 14:17:19 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!2042
No description provided.