Change KPS Counter implementation base and add better replay integration

The counter implementaiton is now list based, and will not invalidate
previous hits by removing them but by testing if they are within the 1
second span, allowing better integration with replays and spectators.
This commit is contained in:
Ryuki
2022-07-31 01:29:57 +02:00
parent 2df24019fd
commit 89855cc1d6
3 changed files with 57 additions and 16 deletions

View File

@ -34,6 +34,7 @@ using osu.Game.Rulesets.Scoring;
using osu.Game.Rulesets.UI;
using osu.Game.Scoring;
using osu.Game.Scoring.Legacy;
using osu.Game.Screens.Play.HUD;
using osu.Game.Screens.Ranking;
using osu.Game.Skinning;
using osu.Game.Users;
@ -1044,6 +1045,9 @@ namespace osu.Game.Screens.Play
musicController.ResetTrackAdjustments();
fadeOut();
KeysPerSecondCounter.Reset();
return base.OnExiting(e);
}