victory-gpu: make mini-FPS overlay smaller and add VICTORY_FPS_SCALE #512
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/readmet3xt-lab--foxhound!512
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-512"
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?
@kwaadrat on GitHub · 2026-12-02 20:56 UTC · original
kwaadrat:fix/fps-overlay-smaller-scale→main· +32 −2 · 2 files · 1 commits · openFixes #493.
Problem
In
crates/victory-gpu/src/host/fps.rs,scale(height)used(height / 540).max(1), which doubled theNATIVE/FGFPS overlay to2xat 1080p and 1440p (48 px tall when stacked) and4xat 4K (96 px tall), overlapping HUD elements like the top-left character status bar.Fix
scale(height)incrates/victory-gpu/src/host/fps.rsto(height / 1080).max(1), keeping the mini-FPS overlay at1xup through 1440p and2xat 4K.VICTORY_FPS_SCALEoverride (clamped to1..=4) for users who want a larger or smaller overlay.VICTORY_FPS_SCALEtoNotOfShadersinlauncher/Launcher.csso setting it does not invalidate translated shaders.fps_overlay_scale_stays_compact_and_honors_overridecovering 720p/1080p/1440p/2160p defaults andVICTORY_FPS_SCALEparsing.Verification
cargo xwin test --target x86_64-pc-windows-msvc --locked -p victory-gpu --lib fps_overlay(under Wine): 2 passed, 0 failed.View 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.