GPU: VICTORY_FRAMETIME_DUMP writes the frame summary to a CSV #2316

Open
github-bot wants to merge 1 commit from github-bot/gh-2316 into main AGit
Owner

@⁠ruvenesh on GitHub · 2026-11-25 10:27 UTC · original
ruvenesh:gpu/frametime-dump-pr → main · +471 −6 · 5 files · 1 commits · open

In diagnostics builds, VICTORY_FRAMETIME_DUMP=<file> (1: frametime.csv in the cache folder) writes one CSV row per one-second frame summary: the figures the summary already computes (fps, ms per frame, preparing, copies, textures, GPU, copy-back, draws, dropped, pipelines being made, indirect, root-view slots) plus the worst and mean single frame, timed at each present. A one-second mean hides a single long frame; the worst frame is the column that shows it.

# lines first name the CPU, GPU and its memory, driver, RAM, OS build, display, the names of the VICTORY_* switches set and the title build, so dumps from different machines and runs can be compared. Switch values are left out (they may be paths); no user names, paths, serials or hostnames. The dump path must be outside the repository (ensure_outside_repo), like the other dumps. It adds no new counters; with the dump off, the summary pays one atomic load. Documented in the README's debugging table.

Ported from skornuta's frame time dump (skornuta/victory-fork, skornuta/victory-frametime, GPL-3.0), cut down to the figures this tree measures (the fork's extra columns time code that is not here). It overlaps a little with #130, which is a much larger profiler with a crate of its own; this one is small and self-contained.

Tested on Linux + Proton (GE-Proton11-14), RTX 3060, x86_64-pc-windows-msvc builds:

  • cargo clippy --workspace --all-targets --locked -- -D warnings, with and without --all-features: clean.
  • New unit tests (path parsing, frame timing, row and header format, switch names): pass. Full cargo test --workspace under Wine: the same failures as unchanged main on that machine (Wine limits), plus one timing test unrelated to this change that passed on three reruns.
  • A 150 s title run with VICTORY_FRAMETIME_DUMP=1: the log names the dump path, and the CSV has a row per second with every line well-formed. (Under Wine the driver version reads as a placeholder.)

No game data included. AI-assisted (Claude Code).

🤖 Generated with Claude Code

**@⁠ruvenesh** on GitHub · 2026-11-25 10:27 UTC · [original](https://github.com/Marvisak/VIctory/pull/2316) `ruvenesh:gpu/frametime-dump-pr` → `main` · +471 −6 · 5 files · 1 commits · open In diagnostics builds, `VICTORY_FRAMETIME_DUMP=<file>` (`1`: `frametime.csv` in the cache folder) writes one CSV row per one-second frame summary: the figures the summary already computes (fps, ms per frame, preparing, copies, textures, GPU, copy-back, draws, dropped, pipelines being made, indirect, root-view slots) plus the worst and mean single frame, timed at each present. A one-second mean hides a single long frame; the worst frame is the column that shows it. `#` lines first name the CPU, GPU and its memory, driver, RAM, OS build, display, the names of the `VICTORY_*` switches set and the title build, so dumps from different machines and runs can be compared. Switch values are left out (they may be paths); no user names, paths, serials or hostnames. The dump path must be outside the repository (`ensure_outside_repo`), like the other dumps. It adds no new counters; with the dump off, the summary pays one atomic load. Documented in the README's debugging table. Ported from skornuta's frame time dump (skornuta/victory-fork, skornuta/victory-frametime, GPL-3.0), cut down to the figures this tree measures (the fork's extra columns time code that is not here). It overlaps a little with #130, which is a much larger profiler with a crate of its own; this one is small and self-contained. **Tested** on Linux + Proton (GE-Proton11-14), RTX 3060, `x86_64-pc-windows-msvc` builds: - `cargo clippy --workspace --all-targets --locked -- -D warnings`, with and without `--all-features`: clean. - New unit tests (path parsing, frame timing, row and header format, switch names): pass. Full `cargo test --workspace` under Wine: the same failures as unchanged `main` on that machine (Wine limits), plus one timing test unrelated to this change that passed on three reruns. - A 150 s title run with `VICTORY_FRAMETIME_DUMP=1`: the log names the dump path, and the CSV has a row per second with every line well-formed. (Under Wine the driver version reads as a placeholder.) No game data included. AI-assisted (Claude Code). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
In diagnostics builds, `VICTORY_FRAMETIME_DUMP=<file>` (`1`:
`frametime.csv` in the cache folder) writes one CSV row per one-second
frame summary: the figures the summary already computes (frame rate, ms
per frame, preparing, copies, textures, GPU, copy-back, draws, dropped,
pipelines being made, indirect, root-view slots), plus the worst and mean
single frame, timed at each present. `#` lines first name the CPU, GPU and
its memory, driver, RAM, OS build, display, the names of the VICTORY_*
switches set (not their values, which may be paths) and the title build,
so dumps from different machines can be compared. The path must be outside
the repository. No new counters; with the dump off, the summary pays one
atomic load.

Ported from skornuta's frame time dump (skornuta/victory-fork,
skornuta/victory-frametime, GPL-3.0), cut down to the figures this tree
measures.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:02:04 +00:00
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 15:26 UTC · original · edited 2026-11-25 15:57 UTC

Automated triage for the maintainers.

This pull request no longer merges cleanly into main (conflicts in crates/victory-gpu/src/lib.rs). It will be reviewed once it is rebased onto the current main. The earlier verdict (merge-candidate) was for an older state of main.


Generated by Claude Code

**@⁠Marvisak** on GitHub · 2026-11-25 15:26 UTC · [original](https://github.com/Marvisak/VIctory/pull/2316#issuecomment-7166848331) · edited 2026-11-25 15:57 UTC <!-- victory-triage v1 head=0a291e7dd58b1ba171122a03c22b7b507506219e verdict=needs-rebase at=2026-11-25T16:00:00Z --> Automated triage for the maintainers. This pull request no longer merges cleanly into `main` (conflicts in `crates/victory-gpu/src/lib.rs`). It will be reviewed once it is rebased onto the current `main`. The earlier verdict (merge-candidate) was for an older state of `main`. --- _Generated by [Claude Code](https://claude.ai/code)_
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/lib.rs
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.
git fetch -u origin '+refs/pull/2316/head:github-bot/gh-2316'
git switch 'github-bot/gh-2316'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2316'
git switch 'github-bot/gh-2316'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2316'
git switch 'github-bot/gh-2316'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2316'
git switch 'main'
git merge --squash 'github-bot/gh-2316'
git switch 'main'
git merge --ff-only 'github-bot/gh-2316'
git switch 'main'
git merge 'github-bot/gh-2316'
git push origin 'main'
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/Marvisak--VIctory!2316
No description provided.