mirror of
https://github.com/IAmTomShaw/f1-race-replay.git
synced 2026-05-09 08:25:56 +02:00
[GH-ISSUE #141] [ENHANCEMENT] 🧩 Improve playback speed UX consistency and decouple input handling #35
Labels
No labels
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/f1-race-replay#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Originally created by @anirudhk06 on GitHub (Dec 28, 2025).
Original GitHub issue: https://github.com/IAmTomShaw/f1-race-replay/issues/141
The playback speed bug was recently fixed (thank you for that!).
While reviewing the current implementation, I noticed two follow-up
improvement opportunities that could enhance usability and maintainability:
UX consistency
Playback speed currently scales multiplicatively. This means the resulting
values depend on the previous history (e.g. starting from 0.1 results in
0.2 → 0.4 → 0.8, while starting from 1.0 results in 2 → 4 → 8).
This can feel unintuitive for users and produces non-standard speeds
such as 1.6x or 3.2x.
A step-based (0.5) approach (e.g. 0.1 → 0.5 → 1 → 1.5 → 2 . . . 4x) would provide more
predictable and user-friendly behavior.
Maintainability
The input handling logic is currently implemented using tightly coupled
conditional branches inside the window class. This makes future changes
(keyboard/mouse/UI controls) harder to maintain and extend.
Would you be open to a small refactor that:
I’m happy to prepare a minimal PR if this sounds reasonable.