diff options
author | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-08-31 19:06:46 +0300 |
---|---|---|
committer | Tiago Conceição <Tiago_caza@hotmail.com> | 2021-08-31 19:06:46 +0300 |
commit | 774fe9d5d096aa2922f2219ddfeeb18c925530de (patch) | |
tree | a989b30e4119a10d7f56e97d54240ad8849e83da /UVtools.Core/FileFormats/FDGFile.cs | |
parent | 1fd53c9d3c34ef2e4027eb2ceb8e79d9e6cdb7e3 (diff) |
v2.20.5v2.20.5
- (Add) Setting - Max degree of parallelism: Sets the maximum number of concurrent tasks/threads/operations enabled to run by parallel method calls.
If your computer lags and freeze during operations you can reduce this number to reduce the workload and keep some cores available to other tasks as well.
<= 0: Will utilize however many threads the underlying scheduler provides, mostly this is the processor count.
1: Single thread. (#279)
Diffstat (limited to 'UVtools.Core/FileFormats/FDGFile.cs')
-rw-r--r-- | UVtools.Core/FileFormats/FDGFile.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/UVtools.Core/FileFormats/FDGFile.cs b/UVtools.Core/FileFormats/FDGFile.cs index edeae11..1a8e456 100644 --- a/UVtools.Core/FileFormats/FDGFile.cs +++ b/UVtools.Core/FileFormats/FDGFile.cs @@ -961,7 +961,7 @@ namespace UVtools.Core.FileFormats foreach (var batch in BatchLayersIndexes()) { - Parallel.ForEach(batch, layerIndex => + Parallel.ForEach(batch, CoreSettings.ParallelOptions, layerIndex => { if (progress.Token.IsCancellationRequested) return; using (var mat = this[layerIndex].LayerMat) @@ -1092,7 +1092,7 @@ namespace UVtools.Core.FileFormats }); } - Parallel.ForEach(batch, layerIndex => + Parallel.ForEach(batch, CoreSettings.ParallelOptions, layerIndex => { if (progress.Token.IsCancellationRequested) return; using (var mat = LayersDefinitions[layerIndex].Decode((uint)layerIndex)) |