GPU: VICTORY_FRAMETIME_DUMP writes the frame summary to a CSV #2314
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2316"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from Marvisak/VIctory. Originally posted by ruvenesh on 2026-11-25T10:27:29Z.
In diagnostics builds,
VICTORY_FRAMETIME_DUMP=<file>(1:frametime.csvin 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 theVICTORY_*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-msvcbuilds:cargo clippy --workspace --all-targets --locked -- -D warnings, with and without--all-features: clean.cargo test --workspaceunder Wine: the same failures as unchangedmainon that machine (Wine limits), plus one timing test unrelated to this change that passed on three reruns.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
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-25T10:44:22Z.
Review: APPROVED
Verified against
origin/main(940d32f) on Windows 11 + NVIDIA GeForce RTX 5090 and WARP:diagnostics) CSV frame-time dumper (VICTORY_FRAMETIME_DUMP) with clear header comments and column formatting.cargo test -p victory-gpu --features diagnostics frametime: 5/5 passed on RTX 5090, 5/5 passed on WARP.cargo clippy -p victory-gpu -p victory --all-targets -- -D warnings(default) andcargo clippy -p victory-gpu --features diagnostics --all-targets -- -D warnings: 0 warnings.cargo xtask policy: 184 files ok.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by catminou4 on 2026-11-25T10:54:04Z.
Review: COMMENTED
VICTORY_FRAMETIME_DUMP CSV per frame summary with CPU/GPU/driver/OS header lines (+471). Static review only: victory-gpu/victory-hle are Windows-only (D3D12/windows-sys); not compiled or tested on this macOS arm64 host. rustc 1.98.1. Telemetry feature; useful for triaging user perf reports.
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T15:26:32Z.
Automated triage for the maintainers.
This pull request no longer merges cleanly into
main(conflicts incrates/victory-gpu/src/lib.rs). It will be reviewed once it is rebased onto the currentmain. The earlier verdict (merge-candidate) was for an older state ofmain.Generated by Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.