diff --git a/Inflate.Tests/InflateSettingsTests.cs b/Inflate.Tests/InflateSettingsTests.cs index 3aa3840..4b7e684 100644 --- a/Inflate.Tests/InflateSettingsTests.cs +++ b/Inflate.Tests/InflateSettingsTests.cs @@ -82,7 +82,6 @@ public sealed class InflateSettingsTests var levelCount = InflateSettings.GetLevelCount(gridWidth, gridHeight); var (coarsestWidth, coarsestHeight) = InflateSettings.GetLevelSize(gridWidth, gridHeight, levelCount - 1); - Assert.InRange(levelCount, 1, InflateSettings.MaximumLevelCount); Assert.True(coarsestWidth * coarsestHeight <= InflateSettings.CoarseSolveThreads, $"{quality} {coarsestWidth}x{coarsestHeight}"); } } diff --git a/Inflate/InflatePipeline.cs b/Inflate/InflatePipeline.cs index 4b61262..ab4f917 100644 --- a/Inflate/InflatePipeline.cs +++ b/Inflate/InflatePipeline.cs @@ -230,10 +230,6 @@ internal sealed class InflatePipeline : IDisposable { var settings = InflateSettings.GetQuality(quality); var (gridWidth, gridHeight) = InflateSettings.GetGridSize(width, height, settings.GridResolution); - var levelCount = InflateSettings.GetLevelCount(gridWidth, gridHeight); - if (levelCount > InflateSettings.MaximumLevelCount) - throw new InvalidOperationException(); - var pyramidLength = InflateSettings.GetPyramidLength(gridWidth, gridHeight); if (!_host.TryEnsureGrid( new InflateGridResources.Plan( diff --git a/Inflate/InflateSettings.cs b/Inflate/InflateSettings.cs index bb4e955..b98469b 100644 --- a/Inflate/InflateSettings.cs +++ b/Inflate/InflateSettings.cs @@ -4,7 +4,6 @@ internal static class InflateSettings { public const int MaximumCanvasSize = 8192; public const int CoarsestLevelSize = 16; - public const int MaximumLevelCount = 9; public const int CoarseSolveThreads = CoarsestLevelSize * CoarsestLevelSize; public const int CoarseSolveRegions = 3; public const int CoarseSolveIterations = 256;