fix: GPU_TIMING names and times commands under light or no DRED #568
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/568"
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?
Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-27T23:43:00Z.
What
VICTORY_GPU_TIMING=1now names and times every command of the title's lists withVICTORY_D3D12_DRED=light(the launcher'sTUNEDset) or with DRED off. Before, only full DRED (--dred) gave the per-command lines.Why
Reported by YUYING234 on Marvisak/VIctory#3505 (it cost two runs on a 4060 Laptop):
HostList::note()returned straight away unless full DRED was on, soslowest()found no texts and no timestamps. The copy statistics printedtheir noted commands 0.0and noby commandblock, andslow host listwas followed by noslow list commandlines.How
note()now asks a small pure function,noting(dred_on, timing), what to keep: the text and a timestamp when either full DRED or timing is on, and aSetMarkercommand only with full DRED. Timing needs the texts and stamps, not the markers.SETMARKERbreadcrumb with the k-th note. Under light DRED no markers are recorded, so nothing is paired. This is the same as before.timed_list). Before, the 50 ms test ran after that work, so the report's own time could flag a list that never waited. With timing on under light DRED, many more lists go through the report, so this matters more now.VICTORY_GPU_TIMINGrow indocs/running-gta6.mdanddocs/fr/lancer-gta6.mdnow says it works with light DRED or none. The table in VIctory'sREADME-fxceless.mdsays the same.Tests
host::tests::timing_notes_commands_without_full_device_removed_data(cargo test -p victory-gpu --features diagnostics --lib timing_notes). It fails with the old rule,(dred_on, dred_on):left: (false, false) right: (true, false). It passes with the fix.host::tests::a_slow_list_is_its_wait_not_the_time_its_report_takes: the control andrewpozdnakov7-jpg ran in Marvisak/VIctory#3623, suggested here by akimfomin, without a device. A 60 ms delay in the report's collection must give the named commands and no slow flag. The same delay in the wait must give the same names with the flag. It fails with the old order (wall time read after collecting:left: (true, [...]) right: (false, [...])) and passes with the fix.132da61:cargo test -p victory-gpu --lib642 passed. With--features diagnostics: 708 passed, 3 failed. The failures arepipeline::make::tests::missing_distinguishes_omitted_and_pending_pipelinesandskipped_hash_leaves_pipeline_unqueued_and_unmatched_queues_normally, which fail the same way with main'shost.rs, andtimeline::report::tests::real_waits_are_recorded_with_who_ended_them, which passed when rerun. None of them is in a file this PR touches.Timing is a diagnostics-only path. With timing off and no full DRED, nothing changes.
AI use: written and tested by Claude Code (Claude Opus 5.5) for KainanP. The test was run red before the fix and green after.
🤖 Generated with Claude Code
Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-28T00:15:41Z.
Main just took #563 (the VIctory copy moved to Vice-Tay
4f15f09e) and #564 (memory stack), and this PR now conflicts inthird_party/victory/crates/victory-gpu/src/host.rs,third_party/victory/docs/README-fxceless.md. Please rebase on current main, rerun the tests for the files you touch, and force-push.Imported from LooperSalty/AnyXboxX. Originally posted by akimfomin on 2026-11-28T00:21:58Z.
PortBridge checked
2e1939dagainst current main132da61: the rebase conflicts inhost.rs. Pairing it with #519 also conflicts in the diagnostics code and the vendored README. This is a Git check, before any build.A second control is already demonstrated by andrewpozdnakov7-jpg in VIctory #3623: inject a delay into collection, then independently into list wait. With the timing-notes fix, the first run should show named commands without a slow-list flag and the second should show the same names with the flag. It separates an apparent hitch created by reporting from a real wait; it also complements
timing_notes_commands_without_full_device_removed_data. Can this pair be the first check on the rebased state? Source reuse is optional. PortBridge merge-check entry.Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-28T00:49:06Z.
The
noting(dred_on, timing)logic is right and the four combinations are tested. After #563 this conflicts with main inthird_party/victory/crates/victory-gpu/src/host.rsandthird_party/victory/docs/README-fxceless.md; please rebase, keep both sides of thehost.rshunk, and force-push.Imported from LooperSalty/AnyXboxX. Originally posted by KainanP on 2026-11-28T00:58:59Z.
Rebased on main
132da61and force-pushed: the head is nowd935b4d4, one commit. The conflicts were the test module ofhost.rs(main's newa_host_list_can_reset_an_abandoned_recordingand this PR's test are both kept) and theVICTORY_GPU_TIMINGrow ofREADME-fxceless.md(main's "with the above" wording is kept and this PR's note is added).@akimfomin, I added your control as a test that needs no device. Doing it showed a real ordering bug, which this PR now fixes:
timed_list). The idea of reading the time first is the one andrewpozdnakov7-jpg found in Marvisak/VIctory#3623; the code here is written separately.a_slow_list_is_its_wait_not_the_time_its_report_takesdelays the collection first: the result must be named commands and no flag. Then it delays the wait: the same names, with the flag. It fails with the old order (left: (true, [...]) right: (false, [...])) and passes now.Tests on the rebased head:
cargo test -p victory-gpu --lib: 642 passed.cargo test -p victory-gpu --features diagnostics --lib: 708 passed, 3 failed. Two of the failures (pipeline::make::tests::missing_distinguishes_omitted_and_pending_pipelinesandskipped_hash_leaves_pipeline_unqueued_and_unmatched_queues_normally) fail the same way with main'shost.rs. The third (timeline::report::tests::real_waits_are_recorded_with_who_ended_them) passed when rerun. None is in a file this PR touches.As akimfomin noted, combining this PR with #519 still conflicts in the diagnostics code and the vendored README. Whichever merges second will need a rebase; I can do it for this one.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.