Repository navigation
Diagnostics: trace command-list waits and memory write progress - #1251
Closed
LaunchDoesntCode wants to merge 1 commit into
Closed
LaunchDoesntCode wants to merge 1 commit into
LaunchDoesntCode wants to merge 1 commit into
Conversation
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 24, 2026
… write progress
Owner
|
Automated triage for the maintainers. Needs work. The tracing is useful and compiled only with the What needs settling:
Generated by Claude Code |
github-actions Bot
added a commit
to KevinPratap/VIctory
that referenced
this pull request
Nov 25, 2026
…rvisak#1251 Marvisak#602 (rebuilt on main 70564ae)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which list will produce the value a command list is waiting for, and how far did that write get? This adds opt-in diagnostics for the 32-bit masked and 64-bit wait requests, queue fence calls, and the lifecycle of a constant-value write on a host command list. The existing wait behavior is unchanged.
Enable
VICTORY_LOG=info,victory_gpu::sync_wait=trace,victory_gpu::sync_write=tracein a diagnostics build. Match the guest memory address, value and width to the requested comparison. For the producer, follow the same host list and write acrossrecorded,submitted(after the D3D12 execute call, with its submission fence), andstored(after writing the guest bytes). Timestamp writes are excluded.In a Windows WARP loading trace on an integrated playtest build, 42 of 43 addresses in the final wait set had an exact-value producer recorded. None of those producers had been submitted after recording the write when the title stopped. A later run with a separate copyback optimization completed three expected writes and both texture readbacks, then lost the software graphics device. These observations distinguish a pending producer from a device failure and do not establish playable world rendering.
On this standalone branch based on
ffe310e, a WARP run produced a wait event and the same constant write at all three stages in order. The diagnostics GPU suite passed 53 tests with one ignored. Workspace Clippy with all targets and features, the default workspace check with all targets, and the asset-policy check passed.Related to #1023, which implements ordered waits. The trace can be used to validate its producer ordering separately.