-
Notifications
You must be signed in to change notification settings - Fork 19
Description
Origin
Related Ideas requiring live stats:
- Projectile speed (gameification): Gameification of speed-type by adding etype-spaceship-shooting #65 Migrating etype features into speed-type larstvei/etype#5 (comment)
- Graduate colouring Gruaduate coloring in the preview buffer #117
- monkeytype (relates to Migrating monkeytype features into speed-type jpablobr/emacs-monkeytype#4)
Description
It would be good to have a live stats calculation (namely of wpm). This live stats would be rolling limited to custom sized stack (FIFO). There must be a smart way to prevent spikes when calculating with rolling values (https://en.wikipedia.org/wiki/Moving_average#Cumulative_average).
When pause is triggered, the live stats should also be paused and display the last value before the pause.
For a "normal user" there would be a ramp up when resuming. This will lead to a sudden drop of the live stats values.
This is okay but maybe wait till the stack has sufficient new values after a resume to make the user not feel bad because he had a ramp up.
Live stats should never be persisted directly because it would explode the stats-file-size even more.