VICTORY_ALT_FLIP=1 swaps the halves of every alt switch (a scripted scene biases one launch by about 5 points) #1341
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/fxceless--victory-fork!1341
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1341"
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?
@CarverXI on GitHub · 2026-11-26 17:14 UTC · original
CarverXI:feat/alt-flip→main· +61 −41 · 17 files · 1 commits · openEvery
=altswitch decides its phase the same way:(seconds since the first call / 20) % 2 == 1. The phases start with the process, so in a scripted scene (a cutscene from a save, started by a key file at the same frame) "with" falls on the same stretches of the scene in every launch. The scene's own difference between those stretches is then read as the switch's.What it measured here
RTX 5090, i9-14900K, the opening cutscene from one save, 60 s to 220 s after the world starts loading, frames over time per phase with the first 4 s after each change dropped. Same build, same switch set, the only difference is which half is "with":
altVICTORY_SYNC_BESIDEVICTORY_REAPERVICTORY_GUARD_OUTSIDE(#1315)So one launch can be off by about 5 points either way in this scene, which is more than most of the steps being measured. Equal-draws comparisons take part of it out, not all (the stretches differ in more than draws).
Change
victory_gpu::alt_on_phase()returns 1 (as today) or, withVICTORY_ALT_FLIP=1, 0, and the 40 places that compare the phase with1compare it with that. Nothing changes without the switch. One launch each way puts "with" on every stretch once; their mean has the scene taken out.17 files, all of it the one-token replacement except the function in
victory-gpu/src/lib.rs(pub, becausevictory-hle'sxmem.rshas one such switch) and four lines in the README.The asset-policy check
This commit was made past the pre-commit hook, and the
checkjob will fail on it, for a reason that is onmainalready:cargo xtask policyrefuses any file over 512 KiB, andcrates/victory-gpu/src/host.rsis 528,954 bytes onmain(e4245f3), 529,194 with this change (240 bytes more, from the places that are in it).crates/victory-shader/src/emit/lower.rsis over as well (535,588 bytes), which is why CI is red onmainnow (#1342). Nothing from the game is in the change: it is the one token at each place, the function and the README lines. If you would rather I leavehost.rsout until the limit or the file is dealt with, say so and I will cut it down to the other files.Checked
cargo test -p victory-gpu --libwith diagnostics, unset and withVICTORY_ALT_FLIP=1: 240 passed, 7 ignored (run with--skip stacks_that_mean_nothing: that profiler test ends in an access violation on this machine onmaintoo, in full runs).cargo check -p victory --features diagnosticsandcargo clippyonvictory-gpuandvictory-hle: nothing new.🤖 Generated with Claude Code
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.