Async calls: VICTORY_ASYNC_LOG=1 logs each call's begin, completion and routine with its queue and port modes, and any still waiting after VICTORY_ASYNC_LOG_MS #1667

Manually merged
github merged 4 commits from github-bot/gh-1667 into main 2026-11-29 08:21:41 +00:00 AGit
Owner

@⁠101Leafy on GitHub · 2026-11-28 23:13 UTC · original
101Leafy:nv/async-log → main · +202 −18 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC

What it changes

VICTORY_ASYNC_LOG=1 logs each async call when it begins. The line carries its identity, its provider, and the queue's two port modes. A second line at completion gives the result. It also says whether a routine ran. VICTORY_ASYNC_LOG_MS (default 5000) sets how long a call may wait before a watcher thread lists it as still waiting. Unset, it logs nothing. No thread starts.

The block address is only used as a key in the log's own map, never read.

How it was tested

  • Tested on: RTX 5080 16 GB on Windows 10
  • Built with clippy only, not run in a game yet
  • Before: a call that never completes leaves no trace
  • After: begin and completion lines per call, and a line for any call still waiting past the limit
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo clippy -p victory-hle --all-targets both with --features diagnostics and without it: no warnings in xasync.rs

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #1205 and #1510 also touch xasync.rs; this one only adds the log calls next to the begin and completion paths.
**@⁠101Leafy** on GitHub · 2026-11-28 23:13 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1667) `101Leafy:nv/async-log` → `main` · +202 −18 · 11 files · 4 commits · merged 2026-11-29 08:16 UTC ## What it changes `VICTORY_ASYNC_LOG=1` logs each async call when it begins. The line carries its identity, its provider, and the queue's two port modes. A second line at completion gives the result. It also says whether a routine ran. `VICTORY_ASYNC_LOG_MS` (default 5000) sets how long a call may wait before a watcher thread lists it as still waiting. Unset, it logs nothing. No thread starts. The block address is only used as a key in the log's own map, never read. ## How it was tested - Tested on: RTX 5080 16 GB on Windows 10 - Built with clippy only, not run in a game yet - Before: a call that never completes leaves no trace - After: begin and completion lines per call, and a line for any call still waiting past the limit - For shader changes, the wave sizes tested: not a shader change. - `cargo clippy -p victory-hle --all-targets` both with `--features diagnostics` and without it: no warnings in xasync.rs ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #1205 and #1510 also touch xasync.rs; this one only adds the log calls next to the begin and completion paths.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-28 23:13:40 +00:00
github-bot force-pushed github-bot/gh-1667 from b71f0cda97 to 311be1360c 2026-11-29 01:46:44 +00:00 Compare
github manually merged commit 0e7a27ef3a into main 2026-11-29 08:21:41 +00:00
This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/trustno1-coder--VIctory-NVIDIA!1667
No description provided.