summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2020-07-03 19:20:32 +0100
committersr55 <[email protected]>2020-07-03 19:21:03 +0100
commit35e106c48f28b0769599a1757be89e97ff9d908f (patch)
treef2f708e2aac60692ec1ac6ae73817d37dea9b434 /win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs
parentd3ea0cbb24a5da4fac6ead6656aacf09c13e5479 (diff)
WinGui: Disable simulatenous encode support on low end systems. Increase the limit to 8 where a system has > 8 physical cores.
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/OptionsViewModel.cs18
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