Skip to content

Commit 5c821fc

Browse files
Update src/ImageSharp.Drawing/Processing/Backends/DefaultDrawingBackend.cs
Co-authored-by: Anton Firszov <antonfir@gmail.com>
1 parent f1a0cdb commit 5c821fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/ImageSharp.Drawing/Processing/Backends/DefaultDrawingBackend.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,10 @@ private static void ExecuteScene<TPixel>(
8787
}
8888

8989
int requestedParallelism = configuration.MaxDegreeOfParallelism;
90-
int partitionCount = ParallelExecutionHelper.GetPartitionCount(requestedParallelism, scene.RowCount);
91-
9290
_ = Parallel.For(
9391
fromInclusive: 0,
9492
toExclusive: scene.RowCount,
95-
parallelOptions: ParallelExecutionHelper.CreateParallelOptions(requestedParallelism, partitionCount),
93+
parallelOptions: ParallelExecutionHelper.CreateParallelOptions(requestedParallelism, scene.RowCount),
9694
localInit: () => new WorkerState<TPixel>(configuration.MemoryAllocator, destinationFrame.Width, scene.MaxLayerDepth + 1),
9795
body: (rowIndex, _, state) =>
9896
{

0 commit comments

Comments
 (0)