Submitting thread: why each part was not joined, per frame and per A/B phase #2008
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!2008
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2008"
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?
@binarycleric on GitHub · 2026-11-29 07:07 UTC · original
up/join-why→main· +257 −27 · 3 files · 3 commits · closed without mergingWhat it changes
Why
With VICTORY_ASYNC_SUBMIT, our submitting thread joins a queue's next submissions to the one it is preparing
(VICTORY_JOIN_PARTS / VICTORY_JOIN_LISTS) so fewer separate host submissions are made. In the game world about 28
submissions a frame reach it and only about 13 are joined. Nothing said why the other ~15 were not, so there was no way
to tell which rule, if any, is worth loosening.
What
yet, lists still being translated, a memory value not met, a fence not reached, a present, the parts' cap, the lists'
cap, title memory written on the CPU for the next part, a CPU read of what the parts before write, or off.
joinablesays which of its two rules refused (Unjoinable);Work::take_alongreturns the reason with what itrefused. Nothing is joined or refused differently.
The counts add up to the submissions prepared separately.
submissions, prepared separately, joined, title waits at presents, the split), first second left out like the
phase's frame times, so both sides of a joining switch are compared under the same load in one run.
Nothing changes without VICTORY_AB.
Numbers
Game-world 5-second lines (20+ submissions a frame, about one present) from two release play runs of the same code on
our integration branch, means per frame:
Reading: raising VICTORY_JOIN_PARTS above 8 can't help (its cap never ends a group). The lists' cap ends 1.5-1.8 groups
a frame; VICTORY_JOIN_WIDE is there to measure raising it. The two biggest causes aren't rules: the title had not
submitted the next part yet, and memory-value waits that nothing known meets.
How it was tested
cargo testpassed for the crates it touches: yes. Rebased onto maine1f2eb60:cargo test --release -p victory-gpu --lib, 589 passed, 0 failed, 44 ignoredTests
submissions_take_those_behind_them_alongnow also checks the reason that ended each group.parts_taken_along_keep_the_order_and_the_fences_of_parts_done_aloneis in the fence-ahead PR, which is stacked on this one.Not tried in play
execute_partssplits again for card steps isn't counted as split.Checked for overlap
Pull request closed