1
0
mirror of https://github.com/ppy/osu.git synced 2026-06-05 06:36:22 +08:00

Avoid tracking hit events altogether during migration

This commit is contained in:
Dean Herbert
2023-06-13 02:15:08 +09:00
Unverified
parent eb526b8c4c
commit d9cb37a53d
2 changed files with 8 additions and 1 deletions
@@ -21,6 +21,8 @@ namespace osu.Game.Database
var ruleset = score.Ruleset.CreateInstance();
var processor = ruleset.CreateScoreProcessor();
processor.TrackHitEvents = false;
var beatmap = new Beatmap();
HitResult maxRulesetJudgement = ruleset.GetHitResults().First().result;
+6 -1
View File
@@ -30,6 +30,11 @@ namespace osu.Game.Rulesets.Scoring
private const double accuracy_cutoff_c = 0.7;
private const double accuracy_cutoff_d = 0;
/// <summary>
/// Whether <see cref="HitEvents"/> should be populated during application of results.
/// </summary>
internal bool TrackHitEvents = true;
/// <summary>
/// Invoked when this <see cref="ScoreProcessor"/> was reset from a replay frame.
/// </summary>
@@ -226,7 +231,7 @@ namespace osu.Game.Rulesets.Scoring
ApplyScoreChange(result);
if (!IsSimulating)
if (!IsSimulating && TrackHitEvents)
{
hitEvents.Add(CreateHitEvent(result));
lastHitObject = result.HitObject;