On-screen overlay of where the frame goes (F3), logged to overlay.log #717
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from fxceless/victory-fork. Originally posted by abilliontokens on 2026-11-25T05:27:41Z.
Stacked 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
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.