Profile on RTX 4080 / i7-14700KF: the submitting thread, by function (ETW, 30 s on the boat) #985
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#985
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?
@bossqunt on GitHub · 2026-11-28 10:36 UTC · original
Hardware: i7-14700KF (8P + 12E, 28 threads), RTX 4080 16 GB (driver 616.64), Windows 11 26200.
Build:
7b27902+ a local counting switch (below), plain release (cargo build --release -p victory).Settings: Series X profile, 2560x1440 output, DLSS Performance (1280x720 render), DLSS frame generation 2x,
VICTORY_INPLACE=1.Scene: the same every run, from the same save: the two opening cutscenes, then the boat on the water collecting the drugs.
Profile:
wpr -start CPU -filemode, 48 s on the boat, middle 30 s analysed withxperf -a dumper -stacktimeshiftingand the build's own PDB.Frame lines (last 2 minutes, means of the 5-second lines)
At 1440p
queue::behindreports "that thread worked 51.8 ms" of a 53 ms frame, and the title's threads wait 28.7 ms a frame at presents.The submitting thread (
queue::behind→Host::execute_parts→Host::submit)On the CPU 77 % of the 30 s (23,013 samples at 1 kHz). Of its samples under
Host::submit, by direct callee:Host::card_beforeshadow::wide17 %, memcpy 15 %,shadow::joined7 %)Host::take_stepsland::Pool::each27 %,card_steps::plan14 %, D3D12Core 14 %,card_steps::does_of13 %)shadow::wide(refresh jobs handed out, and the wait for them)watch::ask_oncehost::stale_ofBatch::flush/fill/refresh_textures/copy_spans/updateHost::submititselfShadow::nothing_newAbout 23 % of the thread's samples end in the kernel. No callee is more than 17 %: the time is spread over the whole of the shared-memory work, so we read it as support for item 1 of "What is next" in
docs/findings.md(one submission's work over two threads in a row). Roughly, the looking (write watch,stale_of, the refreshes andwide) and the sending (card_before,take_steps, D3D12) are about half each.What stands between the halves (from reading
Host::submitat7b27902)We looked at what overlapping submission N's sending with N+1's looking would have to change; these are what we found, offered in case they are of use:
card_beforetakes the dirty ranges of every card copy at once (shadow::card_dirty), so N+1's refreshes would have to wait, or their ranges carry the number of the submission that made them, with N taking only those up to N.card_before(send::take,VICTORY_SEND_OWN). A refresh of N+1 into the same copy before that would be sent with N: the casesend.rsdescribes.card_stepsandlate_blocked/stale_under_flightsfor N+1 look at the flights in the air, and N is not one yet.declared_writes(runs)depends only on the lists, so N's ranges could be published as soon as it begins.ExecuteCommandListsandSignalon the one queue stays, if a single thread sends.The translating threads (
VICTORY_THIN, 8 threads)Each is on the CPU about 46 % of the time (~3.7 cores in all); the log has 38,505 list calls a frame in 164.6 ms of their time (about 4.3 µs a call). 85 % of their samples are in
draw::State::bind→State::tables, which goes to:State::tablesdraw::readabledescriptor::host::make_twinnedState::tablesitselfHostHeap::keepHostHeap::constant_atHostHeap::mirrordescriptor::view_atThese threads have room to spare, so this is not the frame's wall today. A cache of resolved tables whose slots have not changed would mostly give cores back (the 14700KF has 8 P-cores for the title, these eight and the submitting thread).
Which way buffer bytes go (
VICTORY_TRAFFIC=1, a local counting switch)A per-copy count of bytes up (title memory into a copy) and back (shader writes into title memory), 6.5 minutes of the same scene, Series S: about 30 MB up and 1.4 MB back a frame.
0x13c80000, is 50 % of all bytes up and 23 % of the bytes back (45 times more up than back).VICTORY_INPLACE=1placed 82-83 windows (about 390 MB) and turned down about 1,100-1,260 as view memory. Window bytes up went from 10.5 to 6.8 MB a frame, but fps at the same draw counts was within about 1 fps.VICTORY_SEND_BAR=1on this PC: no difference beyond noise (26.4 vs 27.1 fps median, preparing 25.8 vs 26.1 ms).The counting switch is small (a per-copy counter at
Shadow::copy/take/take_landedand at the six landing and merge functions, plus a CSV beside the log) and can be sent as a pull request if it is of use.Stalls near the second boat
When the other boat comes near, fps falls to 10-14 for a few seconds: 0.5 settles a frame of about 90-100 ms each, all "title memory read … by a fill of upload memory", with the card at 93-94 % busy. They show up in runs with and without
VICTORY_INPLACEandVICTORY_SEND_BAR.Logs
GPU: RTX 4080 16 GB (driver 616.64). Windows 11 (build 26200). CPU: i7-14700KF.
issue-985-logs.zip
Attachment Files
@github-actions[bot] on GitHub · 2026-11-28 10:37 UTC · original
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
@trustno1-coder on GitHub · 2026-11-29 19:47 UTC · original
Closing this one because it was reported on a build from before v2026.11.28.03 (more than 4 releases ago) and has had no activity since v2026.11.29.01. A lot has changed since then.
If it still happens on the latest release, please open a new issue with the play log and crashes.log from that run. Thanks for reporting!