Loader: compile unwind_copy only with the diagnostics feature #3785
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!3785
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-3785"
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?
@mrgeda on GitHub · 2026-11-30 07:08 UTC · original
mrgeda:fix/unwind-copy-dead-code→main· +1 −0 · 1 files · 1 commits · closed without merging[pr-fix]
Fixes # (no issue: the first Clippy gate itself fails on main)
What it changes
unwind_copyis called only fromstacks.rs, whose module is compiled withdiagnosticsalone (crates/victory-loader/src/lib.rs:42-43). It was movedinto the unconditional
crashmodule, so the default build has no caller forit and
-D warningsstops the first Clippy gate:That is the step main's CI has been failing on since
41adb55(run 46320380085).This adds the
#[cfg(feature = "diagnostics")]the module that calls italready carries.
How it was tested
cargo clippy -p victory-loader --locked -- -D warnings-> dead_code error, reproduced locally on 1.98.1cargo clippy -p victory-loader --locked -- -D warningscargo clippy -p victory-loader --all-features --locked -- -D warningscargo testpassed for the crates it touches: yes (cargo test -p victory-loader --locked, the integration suites: 4 tests, all pass)Separately, the Tests step has an independent red of its own that this change
does not touch:
cargo xtask policyreportscrates/victory-loader/src/heap_sites/frame_users.rs: 2022 hex digits in one run of \x/0x literals. It is the generatedTESTED: &[usize]table (about 300entries, lines 794-1093), which trips
longest_hex_literal_run's 512-digitlimit. The file says "do not edit by hand" and its generator is not in the
tree, so how to present that table (or exempt it) looks like your call; I am
reporting it here rather than loosening the policy.
Checked for overlap
@dyshay on GitHub · 2026-11-30 08:55 UTC · original
Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch
janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with--profile diag --features diagnostics, and the CPU tests of the touched code pass. A run on an RTX 4090 is queued. Frame times will follow here.@mrgeda on GitHub · 2026-11-30 09:11 UTC · original
Thanks for merging, and for confirming --profile diag --features diagnostics works as expected—that's the exact path gated by the cfg.
Also, since a 4090 won't hit the low-memory paths, just wanted to mention I can repro the same #3784 issue on my laptop (16 GB RAM / RTX 4050 6 GB), though it stalls even earlier before reaching the scene:
Since it's a tier below the 8 GB / 16 GB setup in #3784, let me know if logs from a 6 GB card would be useful for this batch—I can also run it with VICTORY_HELD_LEVELS=1 and VICTORY_LEVELS_ON_DEMAND=1 like in #3784 if needed. Just sharing the data point here; keeping this PR strictly to the cfg change.
@trustno1-coder on GitHub · 2026-12-01 18:48 UTC · original
Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.
Pull request closed