From 1eb6c93916d015524dad238672492470a2c7c94f Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 10 Oct 2023 15:45:35 +0900 Subject: [PATCH] Also debounce `updatePathVertices` to reduce overhead --- osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs b/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs index 3c29d068e6..9c7c0684b3 100644 --- a/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs +++ b/osu.Game/Screens/Play/HUD/ArgonHealthDisplay.cs @@ -75,7 +75,7 @@ namespace osu.Game.Screens.Play.HUD return; glowBarValue = value; - updatePathVertices(); + Scheduler.AddOnce(updatePathVertices); } } @@ -90,7 +90,7 @@ namespace osu.Game.Screens.Play.HUD return; healthBarValue = value; - updatePathVertices(); + Scheduler.AddOnce(updatePathVertices); } }