mirror of
https://github.com/ppy/osu.git
synced 2025-01-26 18:03:11 +08:00
Rename ScorePerformanceManager to ScorePerformanceCache
This commit is contained in:
parent
5113d4af8f
commit
14bb079feb
@ -229,7 +229,7 @@ namespace osu.Game
|
||||
dependencies.Cache(DifficultyCache = new BeatmapDifficultyCache());
|
||||
AddInternal(DifficultyCache);
|
||||
|
||||
var scorePerformanceManager = new ScorePerformanceManager();
|
||||
var scorePerformanceManager = new ScorePerformanceCache();
|
||||
dependencies.Cache(scorePerformanceManager);
|
||||
AddInternal(scorePerformanceManager);
|
||||
|
||||
|
@ -13,9 +13,10 @@ using osu.Game.Beatmaps;
|
||||
namespace osu.Game.Scoring
|
||||
{
|
||||
/// <summary>
|
||||
/// A global component which calculates and caches results of performance calculations for locally databased scores.
|
||||
/// A component which performs and acts as a central cache for performance calculations of locally databased scores.
|
||||
/// Currently not persisted between game sessions.
|
||||
/// </summary>
|
||||
public class ScorePerformanceManager : Component
|
||||
public class ScorePerformanceCache : Component
|
||||
{
|
||||
// this cache will grow indefinitely per session and should be considered temporary.
|
||||
// this whole component should likely be replaced with database persistence.
|
@ -28,7 +28,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Statistics
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(ScorePerformanceManager performanceManager)
|
||||
private void load(ScorePerformanceCache performanceCache)
|
||||
{
|
||||
if (score.PP.HasValue)
|
||||
{
|
||||
@ -36,7 +36,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Statistics
|
||||
}
|
||||
else
|
||||
{
|
||||
performanceManager.CalculatePerformanceAsync(score, cancellationTokenSource.Token)
|
||||
performanceCache.CalculatePerformanceAsync(score, cancellationTokenSource.Token)
|
||||
.ContinueWith(t => Schedule(() => setPerformanceValue(t.Result)), cancellationTokenSource.Token);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user