UseOnlyThisCoresCount

ProcessorSettings.UseOnlyThisCoresCount property

Specify the number of cores to use. You need to change the property “UseAllCores” to “false”.

public int UseOnlyThisCoresCount { get; set; }

Examples

[C#]
BarCodeReader.ProcessorSettings.UseAllCores = false;
BarCodeReader.ProcessorSettings.UseOnlyThisCoresCount = Math.Max(1, Environment.ProcessorCount / 2);
[VB.NET]
BarCodeReader.ProcessorSettings.UseAllCores = False
BarCodeReader.ProcessorSettings.UseOnlyThisCoresCount = Math.Max(1, Environment.ProcessorCount / 2)

See Also