feat(victory-gpu): emit one-second FPS line on stdout #385
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from LooperSalty/AnyXboxX. Originally posted by Lewandox on 2026-11-26T14:45:59Z.
Summary
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