Skip to content

Show decimal BPMs to 3 places instead of rounding to nearest tenth#602

Draft
adstep wants to merge 1 commit into
pnn64:mainfrom
adstep:adstep-decimal-bpm-display
Draft

Show decimal BPMs to 3 places instead of rounding to nearest tenth#602
adstep wants to merge 1 commit into
pnn64:mainfrom
adstep:adstep-decimal-bpm-display

Conversation

@adstep

@adstep adstep commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Why

With "Show Decimal in BPM" enabled, BPMs were still rounded to the nearest tenth, so a chart authored at 100.001 BPM displayed as "100". Official DDR files frequently specify BPMs to 3 decimal places, and players want to see them accurately.

What changed

cached_bpm_text (in src/screens/gameplay.rs) now rounds the decimal display to thousandths instead of tenths, and trims trailing zeros so precision only shows when it matters:

  • 100.001 -> 100.001
  • 133.33 -> 133.33
  • 100.000 / 150 -> 100 / 150 (clean integers still render with no decimal)

This goes a bit further than the reference themes: ITGMania's BPMDisplay always rounds to an integer, and Simply Love shows at most one decimal. Anything finer than a thousandth still rounds, matching DDR's actual precision.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant