From 01edee123f5f26add8723016e76cccee856aef68 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Mon, 19 May 2025 16:13:08 +0900 Subject: [PATCH] Start with known star rating for no-mod-no-convert rather than zero This makes displays look better, even if it's incorrect momentarily. --- osu.Game/Beatmaps/BeatmapDifficultyCache.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osu.Game/Beatmaps/BeatmapDifficultyCache.cs b/osu.Game/Beatmaps/BeatmapDifficultyCache.cs index 9a36388d5d..ef7b3bf8cc 100644 --- a/osu.Game/Beatmaps/BeatmapDifficultyCache.cs +++ b/osu.Game/Beatmaps/BeatmapDifficultyCache.cs @@ -102,7 +102,11 @@ namespace osu.Game.Beatmaps /// A bindable that is updated to contain the star difficulty when it becomes available. Will be null while in an initial calculating state (but not during updates to ruleset and mods if a stale value is already propagated). public IBindable GetBindableDifficulty(IBeatmapInfo beatmapInfo, CancellationToken cancellationToken = default, int computationDelay = 0) { - var bindable = new BindableStarDifficulty(beatmapInfo, cancellationToken); + var bindable = new BindableStarDifficulty(beatmapInfo, cancellationToken) + { + // Start with an approximate known value instead of zero. + Value = new StarDifficulty(beatmapInfo.StarRating, 0) + }; updateBindable(bindable, currentRuleset.Value, currentMods.Value, cancellationToken, computationDelay);