Add opt-in GPU memory synchronization tracing #1514
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1514
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1514"
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?
@draggygaggy-maker on GitHub · 2026-11-24 18:40 UTC · original
draggygaggy-maker:diagnostics/memory-wait-trace→main· +274 −4 · 4 files · 1 commits · openMotivation
Related to #1323.
The current
wait_valueimplementation ignores GPU memory waits. Without visibility into their addresses, comparison codes, reference values and associated writes, investigating potential synchronization dependencies is difficult.This PR introduces opt-in diagnostics without implementing or altering the existing wait semantics.
Changes
VICTORY_SYNC_TRACE=1, available in diagnostics builds and disabled by default.Runtime findings
Tested on Windows with an NVIDIA RTX 4060 Ti against upstream commit
ffe310e.During a story intro session:
All observed waits used raw comparison code
7.One address accounted for 3,177 waits (51.7% of all observed waits), with no captured write starting at that exact address. Nearby writes exhibited a repeating three-slot counter pattern with 72-byte spacing.
These observations provide potential investigation targets, not proof of missing synchronization or incorrect counter values. Matching write events include both recording and execution.
Validation
Limitations
This PR does not implement GPU memory waits, interpret comparison code
7, or intentionally change synchronization behavior.The black-world rendering issue persisted during testing. Neither the reported
CrossQueueBarriermessage norDEVICE_HUNGappeared in the captured session log.Pointer identities may be reused, uninstrumented memory writers are not captured, and verbose logging may affect timing.
AI assistance
Developed with assistance from ChatGPT through iterative source inspection, implementation, code review and regression testing. All reported test and runtime results were obtained locally on physical hardware.
@pfhandler on GitHub · 2026-11-24 20:50 UTC · original
Local patches for two issues hit while running GTA VI 1.0.2.1 through VIctory on Linux (GE-Proton 11-14, vkd3d-proton 3.2.0, RTX 4060 Ti 8 GB):
VICTORY_NO_HOST_PAD=1— a connected host pad (e.g. DualShock appearing as XInput pad 0) keeps the keyboard stand-in pad from being enumerated. Hiding the host pad letsVICTORY_KEYSdrive the title again.VICTORY_MODE=1920x1080— the DXGI output mode list is fixed at the console's 3840x2160. Reporting 1920x1080 instead keeps the title's render targets and VRAM use down on smaller hosts (Series S profile + 1080p settled around 3.5 GB VRAM here).Both are local uncommitted diffs, posted here for reuse. Tested only on the configuration above.
@Marvisak on GitHub · 2026-11-25 01:29 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:README.md). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.