UseOnlyThisCoresCount

ProcessorSettings.UseOnlyThisCoresCount property

Spécifiez le nombre de cœurs à utiliser. Vous devez changer la propriété “UseAllCores” en “false”.

public int UseOnlyThisCoresCount { get; set; }

Exemples

[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)

Voir également