feat: frame-time stability report and slow-frame book (VICTORY_FRAME_TIMES, VICTORY_FRAME_BOOK, VICTORY_THIN_TIMES; off) #519

Open
LooperSalty wants to merge 6 commits from upstream-pr/519 into main
LooperSalty commented 2026-11-27 15:45:59 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by LooperSalty on 2026-11-27T15:45:59Z.


Measurement for the 1 % lows and hitches we cannot explain yet. All off by default; no extra clock read or lock on hot paths when off.

  • VICTORY_FRAME_TIMES=1: every 5 s, median, p95, p99 and frames over 50 and 100 ms (release builds too).
  • VICTORY_FRAME_BOOK=<ms>: one line per frame over the threshold with what grew in it (submission lane, translation, flights, title fence events: max, total, count); VICTORY_FRAME_BOOK_FILE=<path> writes every interval as CSV.
  • VICTORY_THIN_TIMES=1: per-call timing by kind and the three main bind steps on the translation workers (needs VICTORY_THIN=1).

Sources: 3845b3e, 703b4a2, 1873b29, 104c660.

Test plan: cargo test --release -p victory-gpu 468 passed / 43 ignored, switches off and on; cargo xtask policy OK.

Ported by Codex (gpt-6.2-astra) from Skyfrye/AnyXboxX nb3/ports (GPL-3.0), adapted to the Vice-Tay base, reviewed by Claude Code. Credited in THIRD_PARTY.md, Source: and Co-authored-by: in each commit. Not measured in game yet.

🤖 Generated with Claude Code

<!-- greyfinch-sync:LooperSalty/AnyXboxX:issue:5529368185 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/519). Originally posted by [LooperSalty](https://github.com/LooperSalty) on 2026-11-27T15:45:59Z. --- Measurement for the 1 % lows and hitches we cannot explain yet. All off by default; no extra clock read or lock on hot paths when off. - `VICTORY_FRAME_TIMES=1`: every 5 s, median, p95, p99 and frames over 50 and 100 ms (release builds too). - `VICTORY_FRAME_BOOK=<ms>`: one line per frame over the threshold with what grew in it (submission lane, translation, flights, title fence events: max, total, count); `VICTORY_FRAME_BOOK_FILE=<path>` writes every interval as CSV. - `VICTORY_THIN_TIMES=1`: per-call timing by kind and the three main bind steps on the translation workers (needs `VICTORY_THIN=1`). Sources: 3845b3e, 703b4a2, 1873b29, 104c660. Test plan: `cargo test --release -p victory-gpu` 468 passed / 43 ignored, switches off and on; `cargo xtask policy` OK. Ported by Codex (gpt-6.2-astra) from Skyfrye/AnyXboxX `nb3/ports` (GPL-3.0), adapted to the Vice-Tay base, reviewed by Claude Code. Credited in THIRD_PARTY.md, `Source:` and `Co-authored-by:` in each commit. Not measured in game yet. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
chatgpt-codex-connector[bot] commented 2026-11-27 15:46:06 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T15:46:06Z.


Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-27T15:46:04.315506Z
We couldn’t complete this review. Comment @codex review to try again.
8164086 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7222457845 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/519#issuecomment-7222457845). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T15:46:06Z. --- <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"81640860abe8e9bc9f8ef6485d1cb6a3cd5bddb2","has_any_findings":true,"has_unresolved_findings":true,"status":"failed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ❌ Failed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ❌ **Failed** <relative-time datetime="2026-11-27T15:46:04.315506Z">2026-11-27T15:46:04.315506Z</relative-time><br/>We couldn’t complete this review. Comment `@codex review` to try again. | `8164086` | PR opened | <details> <summary>ℹ️ About Codex in GitHub</summary> <br/> [Your team has set up Codex to review pull requests in this repo](https://chatgpt.com/codex/cloud/settings/general). Reviews are triggered when you - Open a pull request for review - Mark a draft as ready - Comment "@codex review" or "@codex security review". Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. </details> </details>
chatgpt-codex-connector[bot] commented 2026-11-27 15:46:08 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by chatgpt-codex-connector[bot] on 2026-11-27T15:46:08Z.


You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7222458379 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/519#issuecomment-7222458379). Originally posted by [chatgpt-codex-connector[bot]](https://github.com/apps/chatgpt-codex-connector) on 2026-11-27T15:46:08Z. --- You have reached your Codex usage limits for code reviews. You can see your limits in the [Codex usage dashboard](https://chatgpt.com/codex/cloud/settings/usage). To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your [settings](https://chatgpt.com/settings/code-review).
akimfomin commented 2026-11-28 00:33:19 +00:00 (Migrated from github.com)

Imported from LooperSalty/AnyXboxX. Originally posted by akimfomin on 2026-11-28T00:33:19Z.


PortBridge found a small guard for the CSV timing path in #519. In merged AnyPS5 #24219, the A/B parser rejects a counted sample if the present report has incomplete batches. The upstream synthetic regression was accepted before the fix even though busy time was missing. That is a useful input for FRAME_BOOK_FILE: a full interval and an incomplete interval with the same command counts should give different eligibility, independently of the frame-time percentile calculation.

The Git pair check used #519 bdfc8ce and #568 2e1939d. It conflicts in host.rs and the vendored README. Would a single synthetic incomplete-interval negative control be useful before combining the diagnostics? This came from a URL-only PortBridge search after restoring the GPU timing cue. Earlier source comparison.

<!-- greyfinch-sync:LooperSalty/AnyXboxX:comment:7231006372 --> Imported from [LooperSalty/AnyXboxX](https://github.com/LooperSalty/AnyXboxX/pull/519#issuecomment-7231006372). Originally posted by [akimfomin](https://github.com/akimfomin) on 2026-11-28T00:33:19Z. --- PortBridge found a small guard for the CSV timing path in `#519`. In [merged AnyPS5 #24219](https://github.com/boykopovar/AnyPS5/pull/24219), the A/B parser rejects a counted sample if the present report has incomplete batches. The upstream synthetic regression was accepted before the fix even though busy time was missing. That is a useful input for `FRAME_BOOK_FILE`: a full interval and an incomplete interval with the same command counts should give different eligibility, independently of the frame-time percentile calculation. The Git pair check used [#519 `bdfc8ce`](https://github.com/LooperSalty/AnyXboxX/pull/519/commits/bdfc8ce053d9b5e2c6524ca5bfedfc68dc64c076) and [#568 `2e1939d`](https://github.com/LooperSalty/AnyXboxX/pull/568/commits/2e1939d5d020f7df83a522994744caa2d049fc2d). It conflicts in `host.rs` and the vendored README. Would a single synthetic incomplete-interval negative control be useful before combining the diagnostics? This came from a URL-only PortBridge search after restoring the GPU timing cue. [Earlier source comparison](https://github.com/LooperSalty/AnyXboxX/pull/568#issuecomment-7230854923).
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/519:upstream-pr/519'
git switch 'upstream-pr/519'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/519'
git switch 'upstream-pr/519'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/519'
git switch 'upstream-pr/519'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/519'
git switch 'main'
git merge --squash 'upstream-pr/519'
git switch 'main'
git merge --ff-only 'upstream-pr/519'
git switch 'main'
git merge 'upstream-pr/519'
git push origin 'main'
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
LooperSalty/AnyXboxX!519
No description provided.