GPU: fills of upload memory wait for flights by default (the café's blurred oval, #1025) #1205
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!1205
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1205"
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?
@tippythetaidum on GitHub · 2026-11-26 00:01 UTC · original
tippythetaidum:gpu/fills-wait-by-default→main· +41 −12 · 2 files · 1 commits · openFixes the blurred oval of #1025.
What
Fills of upload memory and read-only buffer copies that read title memory a flight may write now wait for that flight again by default.
VICTORY_FILL_WAIT=0turns reading ahead back on. Until now, reading ahead was the default andVICTORY_FILL_WAIT=1turned it off.The whole change is the default in
fill_ahead::on, a small parser for the switch with a unit test, and the doc comment, log line and README entry that name the switch.Why
Reading ahead is built to let the first stale fill through and only then wait. That one submission is visible:
0xdc07ea300in six runs and the next 2 KiB in a seventh, and each run logs the "a fill of upload memory read 2048 bytes ... ahead of a flight whose shaders changed them" warning.VICTORY_FILL_WAIT=1, 2 runs, same exe as the last oval runVICTORY_FILL_WAIT=1, 1 run, meshf5e50eb2108c425bdrawn againOn the console the card reads those bytes only after the work before them, so waiting is its behaviour.
What it costs: about one frame per second here (a median of 4.7 against 5.7 fps). The two medians come from different stretches of the runs, so it's a rough figure. Anyone who prefers speed can set
VICTORY_FILL_WAIT=0.Tested
cargo test -p victory-gpu --lib fill_ahead: the newfills_wait_unless_the_switch_is_zeropasses.cargo clippy -p victory-gpu --all-targets: nothing new. The ten warnings it shows are the onesmainalready has (placed_filler_twins,depth_written,is_multiple_ofand others).VICTORY_FILL_WAIT=1on a build ofmaind827419plus open pull requests. This branch is on today'smaindc4c0fcand changes only the default, so with the switch unset it behaves as those=1runs did.Related
#860 holds back only the 64 KiB pieces a miss touched, and its hold starts after the miss, so the first one would still get through. With fills waiting by default, #860's narrower holds matter only with
VICTORY_FILL_WAIT=0.🤖 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.