Timeline: VICTORY_TIMELINE writes what it has when no present comes for 10 s (VICTORY_TIMELINE_STALL, 0 off) #1652

Merged
101Leafy merged 4 commits from upstream-pr/1652 into main 2026-11-29 08:16:55 +00:00
101Leafy commented 2026-11-28 23:04:53 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by 101Leafy on 2026-11-28T23:04:53Z.


What it changes

VICTORY_TIMELINE writes its trace when the frames it was asked for are done. When the game hangs before that, no present comes. Then nothing is written, on the run where the trace would help most. A victory-stall thread now looks every 250 ms at the time of the last present. After VICTORY_TIMELINE_STALL seconds without one (default 10; 0 turns it off) it writes what was recorded so far, with .stall in the file name. The doc line in timeline.rs says so.

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 hang during a VICTORY_TIMELINE recording left no trace.
  • After: the trace up to the hang is written 10 s after the last present.
  • For shader changes, the wave sizes tested: not a shader change.
  • cargo clippy -p victory-gpu --all-targets gives no warnings in the timeline files.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: none.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545459062 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1652). Originally posted by [101Leafy](https://github.com/101Leafy) on 2026-11-28T23:04:53Z. --- ## What it changes `VICTORY_TIMELINE` writes its trace when the frames it was asked for are done. When the game hangs before that, no present comes. Then nothing is written, on the run where the trace would help most. A `victory-stall` thread now looks every 250 ms at the time of the last present. After `VICTORY_TIMELINE_STALL` seconds without one (default 10; 0 turns it off) it writes what was recorded so far, with `.stall` in the file name. The doc line in `timeline.rs` says so. ## 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 hang during a `VICTORY_TIMELINE` recording left no trace. - After: the trace up to the hang is written 10 s after the last present. - For shader changes, the wave sizes tested: not a shader change. - `cargo clippy -p victory-gpu --all-targets` gives no warnings in the timeline files. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: none.
Sign in to join this conversation.
No reviewers
No labels
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.

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