Something like..
- while you gain speed, it keeps counting gained XXX speed. Ignoring non-speed-gaining frames
- If you lose any speed, it'll count "lost xxx speed", ignoring single speedgain frames or any non-speed-gaining ones.
- Once you start actually gaining again, it does like #1..
Would need some method of .. smoothing it out a bit, so it wont go gained 1 lost 1 gained 2 lost 1 etc or such.. Maybe just a constant 3 lines, where 2 is e.g. gained and one is lost and they reset after 1 sec or sth..