到達しないレベル数の上限と検査を取り除く

このコミットが含まれているのは:
routersys committed 2026-10-20 18:30:48 +09:00
1 親 e69a01a2ba
コミット 7781d29030
3ファイル変更
-6

検索条件に一致するファイルはありません

-1
ファイルの表示
@@ -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}");
}
}
-4
ファイルの表示
@@ -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(
-1
ファイルの表示
@@ -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;