On-screen overlay of where the frame goes (F3), logged to overlay.log #717
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!717
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-717"
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?
@abilliontokens on GitHub · 2026-11-25 05:27 UTC · original
abilliontokens:tools/overlay→main· +2081 −70 · 18 files · 13 commits · openStacked on #687 (itself stacked on #617): the first eight commits are those PRs'. This PR's own commits are the last four. It merges cleanly into the current main (
310c6eb).What
An on-screen panel of where the frame goes, in every build, shown from the start. F3 hides or shows it while the title's window has the focus;
VICTORY_OVERLAY=0starts with it hidden.Once a second it shows:
Each second's panel is also appended to
overlay.login the cache folder, shown or hidden (VICTORY_OVERLAY_LOG=<file>elsewhere,0for none).scripts/bench.ps1puts it in the run's folder.How
The figures are the ones the frame-rate line already takes each second (
Meter::frame);card_clock_line,late_lineandshadow::back_linenow also return what they log. The text is drawn with GDI into a bitmap once a second. Each present writes the panel into an upload buffer of its own (one per present list, so a present still in the air keeps its buffer) and copies it onto the back buffer withCopyTextureRegionafter the frame'sCopyResource. No pipeline or shader. Saved frames (VICTORY_CAPTURE) read the source texture, so the panel is not in them. R8G8B8A8, B8G8R8A8, R10G10B10A2 and R16G16B16A16_FLOAT back buffers are handled. Other formats show no panel.Checked
cargo buildof victory-gpu with and withoutdiagnostics;cargo test -p victory-gpu --lib114 passedoverlay drawn width=1428 height=620 format=28in the log); overlay.log written each secondView 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.Merge
Merge the changes and update on Forgejo.