fix(fps-counter): "FPS" is no longer cut off at the counter's right edge #3144
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!3144
Loading…
Reference in a new issue
No description provided.
Delete branch "HumanBean/Longshot:fix/fps-counter-width"
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?
Summary
The FPS counter could cut off the right side of "FPS", most visibly the S at the plain FPS level.
The counter's width is estimated before anything is drawn (
plan,game/mods/fps-counter/src/counter.ts). At thatlevel the estimate came to 80 points with no room to spare, while bold "FPS" and its outline are wider than the
estimate's average letter, and a Canvas cuts what passes its edge. More room is now reserved for it.
Testing
Tested: nothing run, at the author's request.
Still to test:
Measurements
Nothing to measure: the counter's width.
Risks
The counter is a little wider (one 16-point step at the FPS level), so in a right-hand corner the number sits where it
did and the box reaches further left. A revert is enough.
Checklist
Ready for review
main; the title is a Conventional Commit.mise run testpasses (any failure that also fails onmainis named). (not run)main, or Measurements says why there is nothing to measure.third_party/untouched; nothing GPL-incompatible.When it applies
mainand passes here. (none added)Assisted-by:/Co-Authored-By:trailers.Ready to merge
main, measured again or a comment says why the numbers still hold.🤖 Generated with Claude Code
https://claude.ai/code/session_017vw8e2fJhRpDrY7pgVx6oJ
WIP: fix(fps-counter): "FPS" is no longer cut off at the counter's right edgeto fix(fps-counter): "FPS" is no longer cut off at the counter's right edge