The split of a submission's preparing (write watch, title bytes under
flights' writes, the lists' steps and their refreshes, card copies, the
waits for the heaps' records, sending) was counted in diagnostics builds
only. It is now counted in every build, some forty clock reads a
submission, and logged every second as "preparing per frame, the
submitting thread: N ms in its submissions: ...", with the time after
each sending (the flight noted, landed lists reset and given back). The
line of the thread that does the line says what it spent taking
translated lists out of the line (new host lists closed for the title's
lists), which is outside its "worked" time. Diagnostics builds print the
same line in place of their old first split line; their other split
lines are as they were.
Behaviour-neutral: counting and logging only.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The gameplay frame is about 45 ms with the card busy most of it on about
11,000 small commands at 130-140 W of 220; a timeline (tl.190) had the
submission the title waited for stand 7.2 ms sent and not begun behind
other work on the one direct queue. The title runs part of its work on
compute queues of its own, which on the console overlaps its drawing.
The queue itself is not built: a D3D12 list runs only on a queue of its
own type, the type is fixed when the list is made, every host list is a
direct list, and what the layer records into the title's compute lists is
not all something a compute list may hold (textures shaders read are put
in both read states, 0x40|0x80; depth twins are copied through a drawn
pass). A submission cannot fall back to the direct queue once its lists
are compute lists. This is the half that can be had without that:
- host/two_queues.rs: Plan::place, the order between a direct and a
compute queue: the queue each host submission would go to, the value
signalled behind it, and the one wait put before it (left out where the
queue waits behind that value already, or the submission has finished),
for copies in the card's memory (sends and compares in one order), steps
on the card, textures named on both queues, memory values a flight of
the other queue writes (late_met_by), tile mappings, a texture's drawing
state moved on the direct queue first, and submissions of ours.
- With VICTORY_ASYNC_QUEUE=plan (or =1, which says it is not built) the
frame line "two host queues, planned per frame" counts submissions by
the title queue's type, what keeps compute submissions on the direct
queue, those that would go to a compute queue (with and without a wait)
and the waits by reason. Nothing runs differently.
- The title queue's type reaches Host::submit (two_queues::for_title from
the line's thread and the older paths; the queues' types by address,
queue::kind_of); a value job in the line knows its queue.
- Diagnostics: the timeline's summary says how much of the card's running
time was the title's compute queues' submissions (the most a queue of
their own could run beside the rest).
Tests: the plan's order (eight cases). The two failures in indirect::tests
are as before.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
A submission whose lists are still being translated is unfolded where the
one before it may take it along.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The thread that runs the line takes the Run entries that follow in the queue along, with
the waits they meet themselves and the signals between them (the idea: fxceless/victory-fork
39731795), as long as nothing of them reads on the CPU what those before them write; what
they refresh is brought up to date in one go in front (VICTORY_REFRESH_FRONT on its own:
measured at nothing); each part still goes to the queue in a call of its own.
Run submit-1, the dorm: 12 of 28 parts joined, 54.8 -> 51.4 ms a frame of that thread.
A copy at its place in a list is in the way of fills done on the card only from its place
on, and the submission is cut behind its list for those (opening, run n19: 40-60 ms a frame
of the submitting thread standing). Not seen in the dorm; not measured yet.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The title's 45,000 to 60,000 list calls a frame append their arguments to a
stream; threads of ours translate it, several lists at a time, and the line of
submissions goes on with a submission when its recordings are translated.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Diagnostics only. VICTORY_TIMELINE=<file> records three frames (or
VICTORY_TIMELINE_FRAMES) after VICTORY_TIMELINE_AT seconds and writes a
Chrome trace and a text summary: spans of our work, the waits and wake-ups
of the title's threads (its imports) and of ours (our import table), long
kernel calls on the address space, and when each submission ran on the card.
The summary walks back from each present through who waited on whom.
Nothing is wrapped without the variable.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 008de5f9ffcef132079b1af8b7f4f1c22235cee9)
cpu_sets and keep_on_fast_cores are fxceless/victory-fork's (framelog.rs,
commit 0b0074e0). Asked for by: submit, relay, late-wait, heap-sync, aside;
and the helpers of the wide copies (refreshes, fills, snapshots) and of the
landings.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The idea is fxceless/victory-fork's, commit f85101b6. Here one line holds
what all queues were given, presents too, in the order of the calls.
Co-Authored-By: Claude Opus 5.5 <[email protected]>