mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Limit to 10000 tiny ticks per slider
This commit is contained in:
parent
2824a32db6
commit
9d116efdbd
@ -55,6 +55,8 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
|
||||
SliderEventDescriptor? lastEvent = null;
|
||||
|
||||
int ticksGenerated = 0;
|
||||
|
||||
foreach (var e in SliderEventGenerator.Generate(StartTime, SpanDuration, Velocity, TickDistance, Path.Distance, this.SpanCount(), LegacyLastTickOffset))
|
||||
{
|
||||
// generate tiny droplets since the last point
|
||||
@ -70,6 +72,9 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
|
||||
for (double t = timeBetweenTiny; t < sinceLastTick; t += timeBetweenTiny)
|
||||
{
|
||||
if (ticksGenerated++ >= 10000)
|
||||
break;
|
||||
|
||||
AddNested(new TinyDroplet
|
||||
{
|
||||
Samples = tickSamples,
|
||||
|
Loading…
Reference in New Issue
Block a user