到達しないレベル数の上限と検査を取り除く
このコミットが含まれているのは:
3ファイル変更
-6
検索条件に一致するファイルはありません
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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;
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする