Make VICTORY_ALIAS_TARGETS opt-in (=1) until DiscardResource/DCC clearing is verified #2042
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2042"
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?
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
4d98ca87already added physical-page ownership tracking (alias_tracker.record_touch) to emit intra-list aliasing barriers, which supersedes the earlierhost.rsbarrier part of this PR.However,
VICTORY_ALIAS_TARGETSis still on by default while aliased render targets/depth buffers do not yet emitDiscardResourceon ownership transfer to clear hardware DCC/compression metadata. On RTX 3080 (Series X 1440p, DLSS Performance), turningVICTORY_ALIAS_TARGETSoff eliminated random bright green/red lights in window reflections.Change
VICTORY_ALIAS_TARGETSopt-in (VICTORY_ALIAS_TARGETS=1enables) until fullDiscardResource/DCC clearing is verified artifact-free.Verification
--releasebuild, 1440p DLSS Performance.VICTORY_ALIAS_TARGETSwas off.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by Dukestar69 on 2026-11-29T10:32:13Z.
Review: APPROVED
Tested locally merged onto
main(829188e9).crates/victory-gpu/src/alias_rt.rsflippingVICTORY_ALIAS_TARGETSto opt-in (=1) and updating the startup log string.cargo test -p victory-gpu --lib resource::passed (44 passed; 0 failed; 1 ignored, includingis_aliased_ignores_dying_target_with_zero_refcountandan_alias_source_is_held_after_the_title_releases_it) with 0 new warnings.Sensible safety default while DCC/
DiscardResourceclearing on aliased render targets is still being verified. LGTM.Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
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=0removes 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.VICTORY_ALIAS_TARGETS=0: same scene, patches gone, no newcrashes.logentry.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.)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by CubanLegend on 2026-11-29T12:22:06Z.
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.
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 of829188e9plus 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.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.