xmldoc + reword

This commit is contained in:
smoogipoo 2018-08-15 09:51:02 +09:00
parent 2019a89a08
commit 26d4bb5451
1 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,11 @@ namespace osu.Game.Rulesets.Mania.Beatmaps.Patterns
/// </summary>
internal abstract class PatternGenerator
{
private const int max_rng_iterations = 100;
/// <summary>
/// An arbitrary maximum amount of iterations to perform in <see cref="RunWhile"/>.
/// The specific value is not super important - enough such that no false-positives occur.
/// </summary>
private const int max_rng_iterations = 20;
/// <summary>
/// The last pattern.
@ -59,7 +63,7 @@ protected void RunWhile([InstantHandle] Func<bool> condition, Action action)
// Generate + log an error/stacktrace
Logger.Log($"Allowable time exceeded for hitobject generation:\n{new StackTrace(0)}", level: LogLevel.Error);
Logger.Log($"Allowable iterations ({max_rng_iterations}) exceeded:\n{new StackTrace(0)}", level: LogLevel.Error);
}
/// <summary>