diff options
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs index b0635f9ab..46a575bfb 100644 --- a/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs @@ -1355,10 +1355,26 @@ namespace HandBrakeWPF.ViewModels {
get
{
- return new BindingList<int>() { 1, 2, 3, 4 };
+ if (Utilities.SystemInfo.GetCpuCoreCount > 8)
+ {
+ return new BindingList<int> { 1, 2, 3, 4, 5, 6, 7, 8 };
+ }
+
+ if (Utilities.SystemInfo.GetCpuCoreCount > 4 && Utilities.SystemInfo.GetCpuCoreCount <= 8)
+ {
+ return new BindingList<int> { 1, 2, 3, 4 };
+ }
+
+ if (Utilities.SystemInfo.GetCpuCoreCount >= 4)
+ {
+ return new BindingList<int> { 1, 2 };
+ }
+
+ return new BindingList<int> { 1 };
}
}
+ public bool IsSimultaneousEncodesSupported => Utilities.SystemInfo.GetCpuCoreCount >= 4;
#region Public Methods
|