From b2501ae58f83afc295aaa59b73ccff4725d4fdb1 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Thu, 4 Sep 2025 02:19:28 +0900 Subject: [PATCH] Change debounce consideration to use dynamic FPS moving average rather than fixed 60 fps This should better account for scenarios where user FPS is below 60 fps. Previously the debounce would unexpectedly be longer than usual for low FPS scenarios. --- osu.Game/Screens/SelectV2/SongSelect.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Game/Screens/SelectV2/SongSelect.cs b/osu.Game/Screens/SelectV2/SongSelect.cs index ce9d18cb71..64dd92f75b 100644 --- a/osu.Game/Screens/SelectV2/SongSelect.cs +++ b/osu.Game/Screens/SelectV2/SongSelect.cs @@ -402,7 +402,7 @@ namespace osu.Game.Screens.SelectV2 if (debounceQueuedSelection == null) return; // avoid debounce running early if there's a single long frame. - debounceElapsedTime += Math.Min(1000 / 60.0, Clock.ElapsedFrameTime); + debounceElapsedTime += Math.Min(1000 / Clock.FramesPerSecond, Clock.ElapsedFrameTime); if (debounceElapsedTime >= SELECTION_DEBOUNCE) performDebounceSelection();