Workspace tests pass on main again: the two budget tests pin VICTORY_INDIRECT_REST=1 (off by default since 545f890) #67
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!67
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-67"
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?
@jptorres96 on GitHub · 2026-11-27 15:53 UTC · original
jptorres96:fix-main-checks→main· +19 −7 · 3 files · 1 commits · openmainatd12eb1bfails the checks in.github/workflows/ci.yml(Actions shows no runs on this repository, so nothing has been catching it). Checked on Windows, RTX 4080 SUPER (driver 621.01), toolchain 1.98.1.Tests: fixed here
cargo test --workspacefailed invictory-gpu:indirect::tests::host_list_budget_starts_empty_at_each_submission:round 0: the spent budget empties the record after it(left 1, right 0)indirect::tests::warp_batch_charges_every_execution:spent0 instead of 134217728545f890turnedVICTORY_INDIRECT_RESToff by default and updatedfour_records_of_a_group, but not these two, which test the budget with REST on. Both pass withVICTORY_INDIRECT_REST=1and fail without it (they fail withVICTORY_INDIRECT_CARD_BUDGET=0too, so the card budget is not the cause). Each now compiles its clamp withRESTon, asfour_records_of_a_groupdoes:SOURCE.replace("REST ?", "true ?"). The host test callsclamp_intowith that clamp instead ofbound, whose clamp is the process-wide one. Runtime code and the default are unchanged.After this,
cargo test --workspace --lockedpasses.Clippy: two fixes, the rest reported
victory-formats/src/texture.rs:1346:clippy::precedencein a test,(i * 7) >> 3victory-loader/src/write_sites.rs:349,425:clippy::missing_transmute_annotationsin tests,transmute::<usize, F>With those,
cargo clippy --workspace --all-targets -- -D warningsgets tovictory-gpu, which has about 60 more (dead code such asplaced_filler_twins,is_multiple_of,sort_unstable_by_key,too_many_arguments,dropof aCopyvalue…). I have not touched them. Removing dead code blind could break open PRs that use it, and a 60-site change invictory-gpuwould conflict with everything in flight. They could be cleaned up crate by crate, or CI enabled first without-D warningsso at least the tests run on every PR.545f890); two clippy fixes in tests d763e9c903@exotiquee on GitHub · 2026-11-27 16:15 UTC · original
Related data point on the budget these tests cover. The 2^27 default itself drops valid work in normal play.
On an RTX 5080 with a Ryzen 7 9800X3D, using a downstream build with the same clamp shaders and a per-second count of records emptied by the budget:
The clamp's groups race for the budget word, so the records that get cut change from frame to frame. On screen that is flicker and intermittently missing geometry. In one run the water vanished from the boat cutscene's first shots.
Suggestion: make 2^30 the default, and keep the existing "records emptied by the budget" figure (
BUDGET_NOTES) on the frame line as the check that it stays at 0. 2^30 is still a hang guard: a list that spends all of it on garbage is roughly 0.2-0.5 s of card time, under the 2 s TDR limit.I opened #72 for that. It also rewrites
host_list_budget_starts_empty_at_each_submissionso its records fill the budget exactly, and makeswarp_batch_charges_every_executionexpect the right value with or withoutVICTORY_INDIRECT_REST. That overlaps with this PR. Either fix works, and I'll rebase #72 on whichever lands first.@jptorres96 on GitHub · 2026-11-27 16:18 UTC · original
Thanks @exotiquee, that data is useful. This PR only touches the two tests (and two clippy fixes in tests); it leaves the runtime and the 2^27 budget as they are. #72 fixes the same tests and also moves the default to 2^30, which is a gameplay decision for the maintainer. If #72 is the one that goes in, I'll close this one; if this one lands first, #72 only needs to drop its test changes.
@Dukestar69 on GitHub · 2026-11-27 16:28 UTC · original · approved these changes
LGTM — verified on Windows (RTX 5090 + WARP):
cargo test -p victory-gpu --lib indirect::passed (29/29, including both budget tests that pinREST = true)cargo test -p victory-formats --lib texture::(18/18) andcargo test -p victory-loader --lib write_sites::(4/4) passedcargo clippy -p victory-formats -p victory-loader --all-targets -- -D warningspassed with 0 warnings (0 new warnings inindirect.rs)cargo xtask policypassed (279 files ok)Synthetic tests only (no game files used). AI-assisted (Gemini 4 Neon).
@KyleS98 on GitHub · 2026-11-27 16:53 UTC · original
A second machine, for what it is worth: RTX 3090 Ti (driver 616.92), Ryzen 9 9950X3D, Windows 11, toolchain 1.98.1.
d12eb1b: the same two tests fail the same way (left: 1, right: 0atindirect.rs:2745;left: 0, right: 134217728atindirect.rs:3196), in every run.d763e9c(this PR):cargo test -p victory-gpu --lib --lockedpasses twice (416 passed),cargo test --workspace --lockedpasses.cargo clippy --workspace --all-targets --locked -- -D warningsthen stops invictory-gpu(26 errors in the lib), as you say.I ran into the same two failures while testing #68 and #69 and had only noted them there as failing on
main; this is the fix. I agree about leaving the other lints alone while so much is open againstvictory-gpu.One thing to keep an eye on: on a branch of mine with this commit, #68 and #69 together, one
cargo test --workspacerun of eight ended with two failures invictory-gpu; the other seven passed. My filter kept only the totals of that run, so I cannot name the tests, and it may be my branch or this PC rather than this PR.AI-assisted (Claude Code, Claude Fable 5.2).
@IgorAntunes66 on GitHub · 2026-11-27 21:07 UTC · original
Verified on Windows 11 with an RTX 5070 (driver 621.24) and Rust 1.98.1, applying #67 to
f3534e6. Both #211 tests pass with VICTORY_INDIRECT_REST unset, 0, and 1. The full workspace suite passed with 1,064 passed, 0 failed, and 46 ignored. Strict Clippy still reports existing victory-gpu lints outside this patch.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.