From 76b4318b88cb952750da158809e68274adbd9493 Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Mon, 18 Jul 2022 21:45:27 -0700 Subject: CPUDetect: improve win/arm64 support read brand_string on macos/arm64 remove unused flags report family/model info instead of vendor name --- Source/Core/VideoCommon/VideoConfig.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/VideoCommon/VideoConfig.cpp') 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(std::min(std::max(cpu_info.num_cores - 3, 1), 4)); + // Automatic number. + return static_cast(std::clamp(cpu_info.num_cores - 3, 1, 4)); } static u32 GetNumAutoShaderPreCompilerThreads() -- cgit v1.2.3