feat(victory-gpu): emit one-second FPS line on stdout #385
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!385
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-385"
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?
@Lewandox on GitHub · 2026-11-26 14:45 UTC · original
Lewandox:feat/victory-stdout-fps→main· +97 −6 · 1 files · 2 commits · merged 2026-11-26 17:29 UTCSummary
Addresses the finding noted in
docs/rust-full-status.md("VIctory writes fps only to its window title. A stdout fps line in VIctory would let both launchers show it"):stdout(victory fps: {fps:.1} fps, {ms:.1} ms/frame, {draws:.0} draws/frame) from the existingvictory-captionbackground thread inthird_party/victory/crates/victory-gpu/src/host.rs, soPresenter::framenever blocks on a full stdout pipe and broken-pipe errors are safely ignored (unlikeprintln!).VICTORY_FPS_STDOUT=0(matchingVICTORY_OVERLAY=0).format_stdout_fps.host::stdout_fps_testscovering env parsing, formatting, non-finite/negative rejection, and newline-terminated flushing output.Verification
cargo test -p victory-gpu --lib stdout_fps_tests(default features): 4 passed, 0 failedcargo test -p victory-gpu --features diagnostics --lib stdout_fps_tests: 4 passed, 0 failedcargo xtask policy(inthird_party/victory):asset policy: 213 files ok