1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 09:32:55 +08:00

Change smoke quadbatch growth factor to 2 from 1.5

This commit is contained in:
Alden Wu 2022-10-20 23:37:05 -07:00
parent 50ab9bff8b
commit 23b7b9013e

View File

@ -238,9 +238,9 @@ namespace osu.Game.Rulesets.Osu.Skinning
quadBatch ??= renderer.CreateQuadBatch<TexturedVertex2D>(200, 4);
if (points.Count > quadBatch.Size * 4 && quadBatch.Size != 10922)
if (points.Count > quadBatch.Size && quadBatch.Size != IRenderer.MAX_QUADS)
{
int batchSize = Math.Min((int)(quadBatch.Size * 1.5f), 10922);
int batchSize = Math.Min(quadBatch.Size * 2, IRenderer.MAX_QUADS);
quadBatch = renderer.CreateQuadBatch<TexturedVertex2D>(batchSize, 4);
}