docs/README-fxceless.md names two pacing switches no code reads (VICTORY_LATE_WAIT, VICTORY_WIDE_REFRESH), and the live near-miss VICTORY_LATE_WAITS does the opposite #49
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#49
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
@itsonewi on GitHub · 2026-11-26 00:16 UTC · original
Two of the four switches in the README's frame-rate table are not read by any code in the tree, and the nearest live name means the opposite of what the table says.
The table
docs/README-fxceless.md:48:and again at
:135,:136,:144-145:What the code reads
VICTORY_LATE_WAITdocs/README-fxceless.mdand in two comments (crates/victory-gpu/src/inplace.rs:78,crates/victory-gpu/src/shadow.rs:2599)VICTORY_LATE_WAITS(crates/victory-gpu/src/frame.rs:142-144), which is not the same thing: it reverts the late-wait shortcut ("sleeps to the next tick, as before"), i.e. it turns the optimisation offVICTORY_WIDE_REFRESHdocs/README-fxceless.mdwide_threads()=available_parallelism().map_or(4, |n| n.get() / 4).clamp(2, 6)(crates/victory-gpu/src/shadow.rs:1486-1487). There is no switch to disable it and none to force itVICTORY_WIDE_BACKshadow.rs:1451-1454(!= "0")VICTORY_CARD_BUFFERS_MIN_MBshadow.rs:224— but see belowVICTORY_CARD_BUFFERS_MBshadow.rs:225Two ways this bites
frame.rs:144readsVICTORY_LATE_WAITSasis_some_and(|v| v == "1"), so the table'sVICTORY_LATE_WAIT=3would be off with the correct name too. Neighbouring switches disagree on this:VICTORY_WIDE_BACKandVICTORY_CARD_BUFFERSuse!= "0"(any value on),VICTORY_REFRESH_CHECKuses== "1",VICTORY_WEB-style ones useis_none_or. A user cannot tell from the docs which convention a given switch follows.VICTORY_LATE_WAIT, and guessesVICTORY_LATE_WAITS=1gets the revert of the behaviour they were trying to enable, and the log line they compare against changes for that reason alone. That is worse than a dead switch, because it looks like the tuning worked.It has already happened
In #34, run 3 of a report on an RX 6800 used exactly
LATE_WAIT=3 VICTORY_WIDE_BACK=1 VICTORY_CARD_BUFFERS_MIN_MB=1 VICTORY_CARD_BUFFERS_MB=1024— the README line verbatim — and reported no difference from default. Two of those five assignments could not have done anything.Third name, same shape
VICTORY_CARD_BUFFERS_MIN_MBandVICTORY_CARD_BUFFERS_MIN_KBare both read (shadow.rs:224-232), and the KB one silently overrides the MB one when it parses above zero:The README names only the MB form;
docs/findings.mdnames only the KB form. Both are live, one wins silently, and no document says so. This is the same class as #27 (VICTORY_HOST_WAVE/VICTORY_HOST_MAX_WAVE), which is why it is worth one pass over the switch list rather than a fix per name.Fix
README-fxceless.md:48and:135should name the switch the code reads. IfVICTORY_LATE_WAITis meant to be the switch that enables ahead-of-wait submission and that is now the default, say so and drop the switch from the table.:136should either becomeVICTORY_WIDE_REFRESHimplemented inwide_threads()(0 = one thread, 1 = the computed count) or stop offering a switch that does not exist — the sentence already states the real rule (parallel by default on ≥4 logical CPUs), so the parenthetical is the only wrong part.0means on) or state it per switch, so=3in a table is not silently off.VICTORY_CARD_BUFFERS_MIN_KBwins overVICTORY_CARD_BUFFERS_MIN_MB, or make the KB form apply only when the MB one is absent.A test would help and is cheap: a table of
(name, expected)for the switches the docs promise, asserting each name appears in at least onestd::env::var*call in the tree — the kind of thingxtaskcan do without a GPU, and the only thing that would have caught this.Not checked
Read from
docs/README-fxceless.md,frame.rs,shadow.rsandinplace.rsat0a43566, plus a repository-wide content search for each name (the two dead names appear in no source file). I did not run the title with any of these switches, so "no difference" in #34 is the reporter's observation, not mine.AI use
AI-assisted review (source and documentation reading, repository content search). No build, no run, no game files.
@itsonewi on GitHub · 2026-11-26 00:17 UTC · original
A third dead name, and the method that found it, so the fix can be checked off name by name rather than guessed at.
VICTORY_MERGE_RACEdocs/README-fxceless.md:115:A repository-wide content search finds
VICTORY_MERGE_RACEindocs/README-fxceless.mdand in no source file — nostd::env::var, no string literal, no comment. So the counter the line offers cannot be turned on.What I checked, and how
For each documented name: a content search over the default branch (
search/code,repo:avatarmanz/VIctory-7900XTX <name>), then keep the paths that are not underdocs/. A name whose only hits are documentation is dead.Documented and live (so nobody needs to re-check these):
VICTORY_INPLACEcrates/victory-gpu/src/inplace.rsVICTORY_XMA_DUMPcrates/victory-hle/src/modules/audio.rsVICTORY_SHADER_OPTcrates/victory-shader/src/emit/mod.rs,emit/bitcode/opt.rsVICTORY_GPU_TIMINGcrates/victory-gpu/src/copystat.rsVICTORY_POKEapps/victory/src/run.rsVICTORY_KEYScrates/victory-hle/src/modules/gameinput.rsVICTORY_WATCHapps/victory/src/run.rsVICTORY_LATE_WAIT(as a documented name)Documented and dead, all three of the same shape:
VICTORY_LATE_WAIT(:48,:135,:144) — the live name isVICTORY_LATE_WAITSand means the opposite.VICTORY_WIDE_REFRESH(:136) — nothing reads it;wide_threads()(shadow.rs:1486-1487) is unconditional.VICTORY_MERGE_RACE(:115) — nothing reads it.Not verified
Two names I could not settle:
VICTORY_WALLS_TRACE(:117) andVICTORY_CAPTURE_FRAMES(:317) — the search API's rate limit stopped the check (10 requests a minute). They may be live under another file; whoever picks this up should run the same query for them before touching the docs, and treat "no hits outsidedocs/" as the test.The check that would keep this from coming back
xtaskalready holds the asset policy test and runs incargo test. A second test holding(documented_name, expected_read)pairs and grepping the sources for each name would have caught all three, needs no GPU and no game files, and is the only artefact that stays correct as switches get renamed. It also gives the dead-switch count a place to live in CI — which matters more than usual right now, since #45 shows the test step can be skipped entirely by a Clippy failure.(AI-assisted, repository content searches plus source reading at
0a43566.)@timorjay on GitHub · 2026-11-26 00:26 UTC · original
I checked the Windows renderer at
0a43566, the revision in this report. Both settings have readers incrates/victory-gpu/src/host.rs.late_stage()readsVICTORY_LATE_WAITand accepts1,2, or3. An explicit0selects stage zero. The presence ofVICTORY_GPU_TIMINGalso forces stage zero before that setting is read, which matters for an A/B run. Submission stage selectionwide_refresh()readsVICTORY_WIDE_REFRESH.0disables parallel refresh,1forces it, and the default enables it with at least four logical CPUs. Refresh selection and its testThe similarly named
VICTORY_LATE_WAITScontrols the frame tick inframe.rs. Both spellings are active and affect different waits. Frame pacingCodex-assisted source review of the pinned revision.
@JaoNike on GitHub · 2026-11-26 03:04 UTC · original
Hey! I want to help contribute to the port, but I can't find the .exe file anywhere. Is there a download link available? Thanks!