1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 20:05:29 +08:00

Avoid tracking hit events altogether during migration

This commit is contained in:
Dean Herbert 2023-06-13 02:15:08 +09:00
parent 385f6dbd84
commit e9fb1f8932
2 changed files with 8 additions and 1 deletions

View File

@ -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;

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;