1
0
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:
smoogipoo 2019-04-10 10:57:27 +09:00
parent 2824a32db6
commit 9d116efdbd

View File

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