Play defaults: send free first and sweep ahead on; learned pages and late fills stay off #4816
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!4816
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-4815"
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?
@githubkdskkd on GitHub · 2026-12-01 09:52 UTC · original
githubkdskkd:card-idle-defaults→main· +20 −4 · 3 files · 1 commits · closed without mergingFixes #
What it changes
Two switches that are already in the code but off by default are now on in both launchers (
apps/victory/src/play.rs,scripts/play-nvidia.ps1), and the README's rows say the new defaults:VICTORY_SEND_FREE_FIRST=1— a submission that must wait for earlier card work is split, and its first lists, which need nothing from that work, go to the card at once (host.rs:6331-6345, applied at9677). Its doc records 37 ms a frame of the card standing with nothing of ours queued while the submitting thread worked (a play run of 2026-11-27).VICTORY_SWEEP_AHEAD=1— the once-a-second sweep runs while card work is still in flight, instead of the settle that stood the submitting thread until the card had run all it was given (host.rs:4820-4835, applied at10265).Why the other two stay off — the ablations in this PR's comments, attributed:
1CARD_STEPS_LEARNaloneCARD_STEPS_LEARN+LATE_FILLSLATE_FILLSaloneSEND_FREE_FIRSTaloneSWEEP_AHEADaloneThe learning of late-written pages makes the submitting thread wait on the card: tillo88's learn line read "1.00 submissions waited for a learned page; 141 pages learned" a frame, with "175.0 fills in 4.00 submissions done when the card got to them (VICTORY_LATE_FILLS)". tillo88's p99 improving (63.7 → 56.4 / 49.0 ms across the two runs) is not a mitigating factor, as that comment itself says: at about 27.6 fps every frame is longer. The warm-up
0x80070057in the second bench is #2237's known crash, not this PR's.LATE_FILLSdoes nothing withoutCARD_STEPS_LEARN(it only softens that loss), so both stay off.SEND_FREE_FIRSTandSWEEP_AHEADmeasured neutral within the controls' spread (1.9 to 4.2 ms of preparation) and are kept for the card-idle pattern their docs record; no rig measured a gain from either, and neither was ablated on the second rig.No code changes. Each switch stays overridable per run —
--set NAME=0invictory play,-More @{NAME='0'}in the launcher — and the F1 menu's saved settings win over both launchers' tables (play.rs:648-663;play-nvidia.ps1:260-288).How it was tested
cargo testpassed for the crates it touches: not run — no Windows PC and no Rust toolchain where this was prepared. The change adds no code: two default-table entries, the same two in the launcher's table, and their README rows.What was checked instead, on
mainat5fabb46e: both kept switches exist and the launchers' value1turns each on (SEND_FREE_FIRSTisswitch::on, on unless0—host.rs:6344;SWEEP_AHEADreads exactly1—host.rs:4834);CARD_STEPS_LEARNandLATE_FILLSdefault off again (card_steps.rs:1203and1403); and the override chain was read in both files (menu saves and--set/-Moreinsert over the tables before the environment is written).Checked for overlap
@DoubleD17 on GitHub · 2026-12-01 12:43 UTC · original
We measured these four defaults, since none were measured here. Short version: on our PC,
VICTORY_CARD_STEPS_LEARN=1costs about a fifth of the frame rate, and the other three are neutral.Setup
5fabb46e; it carries an unrelated PR's code, switched off in every arm.victory play(which setsVICTORY_CARD_STEPS=2) with the switches given by--set.0.1SEND_FREE_FIRSTaloneSWEEP_AHEADaloneCARD_STEPS_LEARN+LATE_FILLSCARD_STEPS_LEARNaloneLATE_FILLSaloneCARD_STEPS_LEARN=1lost 17 to 30 %. Without it, the waiting stays at 0.6 to 1.2 ms a frame.VICTORY_CARD_STEPS_LEARNlog line says (per frame, over the 150 s):LEARNalone: about 2.8 submissions a frame "waited for a learned page", with about 138 pages learned.LATE_FILLStoo: 0.9 a frame. That is whyLATE_FILLSsoftens the loss but does not remove it.CARD_STEPS_LEARN's doc says it fixes (they were not on screen in these runs), movement, Series S, frame generation on, other cards.On this data,
SEND_FREE_FIRSTandSWEEP_AHEADare neutral here, andLATE_FILLSdoes nothing withoutCARD_STEPS_LEARN. Turning onCARD_STEPS_LEARNby default would cost about 21 % fps on a PC like this one.AI Assisted
@tillo88 on GitHub · 2026-12-01 15:26 UTC · original
Measured the four switches this PR turns on (
VICTORY_CARD_STEPS_LEARN=1,VICTORY_LATE_FILLS=1,VICTORY_SEND_FREE_FIRST=1,VICTORY_SWEEP_AHEAD=1, set on the launch) on v2026.11.30.03, 2 runs, against the release as it is. The PR only changes defaults, so nothing was merged; the log header lists all four, and the release already runsVICTORY_CARD_STEPS=2.CARD_STEPS_LEARNon a 5800X. I did not test the switches one at a time.a host command list did not close (0x80070057)at +2:38 after the log starts, about 20 s after the prison → plane cutscene cut. That is the known crash of #2237; the bare release stops near that cut in 9 of 42 runs on this bench, so it is not from this PR. Both measured runs completed.Setup: Ryzen 7 9800X3D, RTX 5070 Ti 16 GB (driver 621.40), 32 GB RAM, Windows 11, release build, Series X 1440p, DLSS Quality, frame generation off, ray tracing off. Same save restored before each run (start of the game), prison cutscene, plane cutscene, first boat section, about 6 minutes; warm-up run not counted for speed.
Measured unattended on a replay bench (same save, recorded controller input via VICTORY_INPUT_REPLAY); numbers and text prepared with Claude.
Play defaults: learned pages, late fills, send free first, sweep ahead on — keep the card fed while the submitting thread worksto Play defaults: send free first and sweep ahead on; learned pages and late fills stay off@githubkdskkd on GitHub · 2026-12-01 18:11 UTC · original
The revision described in the updated description is commit
618af305("Play defaults: send free first and sweep ahead on; learn and late fills stay off") on top of this branch. It keepsVICTORY_SEND_FREE_FIRST=1andVICTORY_SWEEP_AHEAD=1inapps/victory/src/play.rsandscripts/play-nvidia.ps1(with the ablation numbers from @DoubleD17 and @tillo88 recorded where the defaults are set and in the README's rows), and putsVICTORY_CARD_STEPS_LEARNandVICTORY_LATE_FILLSback at their off defaults, with their measured costs (-29.0 % alone, -21.5 % withLATE_FILLS; -13.7 % for all four on the second rig) written into the README so the opt-in is an informed one.Until this commit is pushed to the branch, the diff above still shows the first version's four switches.
Pull request closed