Skip to content

feat: add smooth speed transitions to Smart Speed engine - #4265

Open
mjaroszek wants to merge 1 commit into
code-charity:masterfrom
mjaroszek:feat/smart-speed-ema-smoothing
Open

feat: add smooth speed transitions to Smart Speed engine#4265
mjaroszek wants to merge 1 commit into
code-charity:masterfrom
mjaroszek:feat/smart-speed-ema-smoothing

Conversation

@mjaroszek

Copy link
Copy Markdown
Contributor

Replaces the one-directional 2.5s segment-boundary lerp with a global EMA (exponential moving average) smoothing system. Adds a configurable Smoothness slider (0-1, default 0.3).

  • 0 = instant jumps between segments
  • 1 = very gradual transitions (~5s settle time)
  • Default 0.3 = snappy but no hard jumps (~300ms settle)

3 files changed.

- Replace one-directional 2.5s lerp with global EMA smoothing
- Smoothing factor configurable via slider (0.05-1.0, default 0.3)
- Higher values = smoother, more gradual speed transitions; 1.0 = instant (no smoothing)
- Add smart_speed_smoothing storage key and locale string
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