feat(victory): frame-rate counter at the top left of the game window #225

Manually merged
github merged 1 commit from gh-pr/225/head into gh-pr/225/base 2026-11-26 05:38:40 +00:00
Owner

@⁠LooperSalty on GitHub · 2026-11-25 18:57 UTC · original
LooperSalty:feat/fps-overlay → main · +279 −0 · 4 files · 1 commits · merged 2026-11-25 19:09 UTC

Change

A frame-rate counter in large bold text at the top left of the game window, asked by the maintainer to follow fps while playing.

  • third_party/victory/crates/victory-gpu/src/fps_overlay.rs: ported from rorodev6/victory 4ddc0c1 (GPL-3.0-or-later). A layered, click-through, top-most window on its own thread reads the frames presented every 250 ms and shows the rate over the last second. No frame time, nothing drawn into the title's picture, no GPU work.
  • Changes from the source: reads our queue::presented() counter; the character height is configurable with VICTORY_FPS_OVERLAY_SIZE=<pixels> (default 54, bounded 16-240) and the window scales with it. VICTORY_FPS_OVERLAY=0 hides it.
  • Started next to the "presenting to a window" log line in host.rs; module registered in lib.rs (Windows only).
  • THIRD_PARTY.md: rorodev6/victory added to the sources of third_party/victory (rule 10).

Verification

  • cargo build --profile diag -p victory --features diagnostics (third_party/victory): OK.
  • cargo test -p victory-gpu --features diagnostics fps_overlay: 2 passed (size parsing and bounds, window scaling). They fail without the port.
  • Tried in game by the maintainer after merge.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LwHrL4tW8PW9t9yQ4GbErX

**@⁠LooperSalty** on GitHub · 2026-11-25 18:57 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/225) `LooperSalty:feat/fps-overlay` → `main` · +279 −0 · 4 files · 1 commits · merged 2026-11-25 19:09 UTC ## Change A frame-rate counter in large bold text at the top left of the game window, asked by the maintainer to follow fps while playing. - `third_party/victory/crates/victory-gpu/src/fps_overlay.rs`: ported from rorodev6/victory `4ddc0c1` (GPL-3.0-or-later). A layered, click-through, top-most window on its own thread reads the frames presented every 250 ms and shows the rate over the last second. No frame time, nothing drawn into the title's picture, no GPU work. - Changes from the source: reads our `queue::presented()` counter; the character height is configurable with `VICTORY_FPS_OVERLAY_SIZE=<pixels>` (default 54, bounded 16-240) and the window scales with it. `VICTORY_FPS_OVERLAY=0` hides it. - Started next to the "presenting to a window" log line in `host.rs`; module registered in `lib.rs` (Windows only). - `THIRD_PARTY.md`: rorodev6/victory added to the sources of `third_party/victory` (rule 10). ## Verification - `cargo build --profile diag -p victory --features diagnostics` (third_party/victory): OK. - `cargo test -p victory-gpu --features diagnostics fps_overlay`: 2 passed (size parsing and bounds, window scaling). They fail without the port. - Tried in game by the maintainer after merge. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01LwHrL4tW8PW9t9yQ4GbErX
A layered, click-through, top-most window on its own thread shows the rate
over the last second, read from the frames presented. It costs no frame
time and never touches the title's picture. VICTORY_FPS_OVERLAY=0 hides
it; VICTORY_FPS_OVERLAY_SIZE=<pixels> sets the character height (default
54, bounded 16-240), the window grows with it.

Source: rorodev6/victory 4ddc0c1 (crates/victory-gpu/src/fps_overlay.rs)
Co-authored-by: rorodev6 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:38:36 +00:00
github manually merged commit 297cc12ac2 into gh-pr/225/base 2026-11-26 05:38:40 +00:00
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-25 19:02 UTC · original

@⁠codex review

**@⁠LooperSalty** on GitHub · 2026-11-25 19:02 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/225#issuecomment-7171747221) @⁠codex review
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 19:04 UTC · original

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 297cc12ac2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 19:04 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/225#issuecomment-7171780267) <!-- codex-review-receipt:v1 --> Codex Review: Didn't find any major issues. Keep it up! **Reviewed commit:** `297cc12ac2` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 18:57 UTC · original · edited 2026-11-25 19:04 UTC

Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T19:04:18.762751Z 297cc12 Manual request
ℹ️ 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.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 18:57 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/225#issuecomment-7171635053) · edited 2026-11-25 19:04 UTC <!-- codex-pull-request-review-summary --> <!-- codex-review-state:v1 {"code_review":{"commit_sha":"297cc12ac268350b945a37c35325cb9630550eb9","has_any_findings":false,"has_unresolved_findings":false,"status":"completed"},"security_review":{"commit_sha":null,"has_any_findings":null,"has_unresolved_findings":null,"status":null}} --> <details> <summary><strong>Codex Review Summary</strong>: ✅ Completed</summary> This comment shows the latest Codex review activity on this pull request. | Review | Status | Commit | Review trigger | | --- | --- | --- | --- | | 📝 **Code Review** | ✅ **Completed** <relative-time datetime="2026-11-25T19:04:18.762751Z">2026-11-25T19:04:18.762751Z</relative-time> | `297cc12` | Manual request | <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>
@ -0,0 +11,4 @@
//! `VICTORY_FPS_OVERLAY_SIZE=<pixels>` sets the character height (default 54).
//!
//! Source: rorodev6/victory, commit 4ddc0c1 (`crates/victory-gpu/src/fps_overlay.rs`),
//! GPL-3.0-or-later; ported with a configurable size.
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 18:58 UTC · original

P1 Badge Include the required upstream attribution trailers

This file explicitly identifies itself as a port of rorodev6/victory commit 4ddc0c1, but the reviewed commit message contains neither the required Source: trailer nor a Co-authored-by: trailer crediting the upstream author. The source comment and THIRD_PARTY.md entry do not satisfy the separate commit-attribution requirement in AGENTS.md rule 10. Include both trailers in the port's commit message to preserve the required provenance and authorship.

AGENTS.md reference: AGENTS.md:L59-L59

Useful? React with 👍 / 👎.

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 18:58 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/225#discussion_r4699505712) **<sub><sub>![P1 Badge](https://img.shields.io/badge/P1-orange?style=flat)</sub></sub> Include the required upstream attribution trailers** This file explicitly identifies itself as a port of rorodev6/victory commit `4ddc0c1`, but the reviewed commit message contains neither the required `Source:` trailer nor a `Co-authored-by:` trailer crediting the upstream author. The source comment and `THIRD_PARTY.md` entry do not satisfy the separate commit-attribution requirement in `AGENTS.md` rule 10. Include both trailers in the port's commit message to preserve the required provenance and authorship. AGENTS.md reference: [AGENTS.md:L59-L59](https://github.com/LooperSalty/AnyXboxX/blob/297cc12ac268350b945a37c35325cb9630550eb9/AGENTS.md#L59-L59) Useful? React with 👍 / 👎. <!-- codex-code-review-finding:v1 -->
@ -0,0 +11,4 @@
//! `VICTORY_FPS_OVERLAY_SIZE=<pixels>` sets the character height (default 54).
//!
//! Source: rorodev6/victory, commit 4ddc0c1 (`crates/victory-gpu/src/fps_overlay.rs`),
//! GPL-3.0-or-later; ported with a configurable size.
Author
Owner

@⁠LooperSalty on GitHub · 2026-11-25 19:02 UTC · original

The trailers are in the commit message of 297cc12 (last paragraph), and git interpret-trailers --parse reads them:

Source: rorodev6/victory 4ddc0c1 (crates/victory-gpu/src/fps_overlay.rs)
Co-authored-by: rorodev6 <[email protected]>

so rule 10 is met (source comment in the file, THIRD_PARTY.md row, and both trailers). Resolving.

**@⁠LooperSalty** on GitHub · 2026-11-25 19:02 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/225#discussion_r4699550360) The trailers are in the commit message of `297cc12` (last paragraph), and `git interpret-trailers --parse` reads them: ``` Source: rorodev6/victory 4ddc0c1 (crates/victory-gpu/src/fps_overlay.rs) Co-authored-by: rorodev6 <[email protected]> ``` so rule 10 is met (source comment in the file, `THIRD_PARTY.md` row, and both trailers). Resolving.
Author
Owner

@⁠chatgpt-codex-connector[bot] on GitHub · 2026-11-25 18:58 UTC · original · reviewed

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 297cc12ac2

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback".

**@⁠chatgpt-codex-connector[bot]** on GitHub · 2026-11-25 18:58 UTC · [original](https://github.com/LooperSalty/AnyXboxX/pull/225#pullrequestreview-6063296641) · **reviewed** <!-- codex-review-receipt:v1 --> ### 💡 Codex Review Here are some automated review suggestions for this pull request. **Reviewed commit:** `297cc12ac2` <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". If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@⁠codex address that feedback". </details>
This discussion has been locked. Commenting is limited to contributors.
No description provided.