Play defaults: send free first and sweep ahead on — learned pages and late fills stay off #5045
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!5045
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-5044"
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 18:14 UTC · original
githubkdskkd:card-idle-two-switches→main· +22 −2 · 3 files · 1 commits · openRefs #4816
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:6890-6904, applied at10467). 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:5320-5340, applied at11136).The pattern behind both: the card idle while the submitting thread prepares and waits.
Rebased on main at
b97efa76(2026-12-01, one commit: "Play defaults: send free first and sweep ahead on",be77d718); the diff is unchanged: three files, +22/−2.Why
VICTORY_CARD_STEPS_LEARNandVICTORY_LATE_FILLSwere dropped (and stay off)#4816's first version turned four defaults on. Two independent benches in its comments measured that and it was slower: -21.3 % fps with all four on (@DoubleD17, RTX 5070, Ryzen 7 5800X) and -13.7 % (27.61 vs 32.01) on a second rig (@tillo88, RTX 5070 Ti, 9800X3D, v2026.11.30.03), with the submitting thread going from 20.5 to about 35 ms a frame. The isolation table in @DoubleD17's comment puts the cost on the learned pages:
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 run shows the learn line active ("1.00 submissions waited for a learned page; 141 pages learned", "175.0 fills in 4.00 submissions done when the card got to them (VICTORY_LATE_FILLS)" a frame), and its p99 improving (63.7 → 56.4 and 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.
LATE_FILLSdoes nothing withoutCARD_STEPS_LEARN(it only softens that loss), so both stay at their off defaults; players who see the stretched skinned characters the learn machinery fixes can still opt in with--set VICTORY_CARD_STEPS_LEARN=1 --set VICTORY_LATE_FILLS=1, accepting the measured cost.Why these two flags are isolated
They are the only two of the four whose ablations measured no cost:
SEND_FREE_FIRST-0.4 % (preparation -0.4 ms, waiting +0.0 ms) andSWEEP_AHEAD-0.8 % (preparation +0.0 ms, waiting -0.3 ms), both within the controls' spread of 1.9 to 4.2 ms of preparation on that rig. Neither measured a gain anywhere, and neither was ablated on the second rig (which ran all four together); they are kept for the card-idle pattern their docs record, at a measured cost of nothing.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.How it was tested
cargo testpassed for the crates it touches:cargo check -p victorydoes not compile on the unchanged base (mainat5fabb46ebefore this rebase, same pins now) in the environment where this was prepared — 93 pre-existing errors invictory-gpuwith the pinned toolchain, on a clean checkout with no changes. The change touches only launcher default tables and README rows; CI on Windows is the arbiter.What was checked instead, on the rebased tree: both switches still exist and the launchers' value
1turns each on (SEND_FREE_FIRSTisswitch::on, on unless0;SWEEP_AHEADreads exactly1); neither is in either launcher's default table on main; the diff touches no other default; 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
A call to measure
If you can run this title on your rig: please benchmark this PR against an unmodified build — same save, same route, switches at their defaults, and an ablation arm with
VICTORY_SEND_FREE_FIRST=0 VICTORY_SWEEP_AHEAD=0if you can spare a third run. Post your numbers on this PR either way, including null results: the two switches here have only one rig's ablation behind them, and a defaults change should not merge on less than that.1543c144actobe77d718f4View 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.