diff options
| author | Admiral H. Curtiss <pikachu025@gmail.com> | 2022-07-26 12:52:50 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-26 12:52:50 +0200 |
| commit | 6b419c7ca3e3ed5fcb208f87fa352d5860c28adc (patch) | |
| tree | d9e91e6c5891847d07d40b583f6504e06971a91e /Source/Core/VideoCommon/VideoConfig.cpp | |
| parent | 9d15a1c5a1e6183a0e98165ac093e74ca8e4894e (diff) | |
| parent | 76b4318b88cb952750da158809e68274adbd9493 (diff) | |
Merge pull request #10876 from shuffle2/cpudetect
CPUDetect: improve win/arm64 support
Diffstat (limited to 'Source/Core/VideoCommon/VideoConfig.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VideoConfig.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/VideoCommon/VideoConfig.cpp b/Source/Core/VideoCommon/VideoConfig.cpp index c1ff163f9c..e13e8d96ac 100644 --- a/Source/Core/VideoCommon/VideoConfig.cpp +++ b/Source/Core/VideoCommon/VideoConfig.cpp @@ -179,8 +179,8 @@ bool VideoConfig::UsingUberShaders() const static u32 GetNumAutoShaderCompilerThreads() { - // Automatic number. We use clamp(cpus - 3, 1, 4). - return static_cast<u32>(std::min(std::max(cpu_info.num_cores - 3, 1), 4)); + // Automatic number. + return static_cast<u32>(std::clamp(cpu_info.num_cores - 3, 1, 4)); } static u32 GetNumAutoShaderPreCompilerThreads() |
