From 2f19ed50baf0d8c8cdca8b2456f5a96a5ab96467 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Sun, 16 Jul 2023 13:52:24 -0700 Subject: [PATCH] Print Physical Core count at start up --- src/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs | 2 +- src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs | 2 +- src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs b/src/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs index 08aa452eb..38ef9a7b3 100644 --- a/src/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs +++ b/src/Ryujinx.Common/SystemInfo/LinuxSystemInfo.cs @@ -40,7 +40,7 @@ namespace Ryujinx.Common.SystemInfo ulong.TryParse(memDict["MemTotal"]?.Split(' ')[0], NumberStyles.Integer, CultureInfo.InvariantCulture, out ulong totalKiB); ulong.TryParse(memDict["MemAvailable"]?.Split(' ')[0], NumberStyles.Integer, CultureInfo.InvariantCulture, out ulong availableKiB); - CpuName = $"{cpuName} ; {LogicalCoreCount} logical"; + CpuName = $"{cpuName} ; {GetPhysicalCoreCount()} physical ; {LogicalCoreCount} logical"; RamTotal = totalKiB * 1024; RamAvailable = availableKiB * 1024; } diff --git a/src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs b/src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs index 98a0d8abf..466312e21 100644 --- a/src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs +++ b/src/Ryujinx.Common/SystemInfo/MacOSSystemInfo.cs @@ -26,7 +26,7 @@ namespace Ryujinx.Common.SystemInfo totalRAM = 0; } - CpuName = $"{cpuName} ; {LogicalCoreCount} logical"; + CpuName = $"{cpuName} ; {GetPhysicalCoreCount()} physical ; {LogicalCoreCount} logical"; RamTotal = totalRAM; RamAvailable = GetVMInfoAvailableMemory(); } diff --git a/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs b/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs index 3b36d6e2e..fce9daffd 100644 --- a/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs +++ b/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs @@ -11,7 +11,7 @@ namespace Ryujinx.Common.SystemInfo { internal WindowsSystemInfo() { - CpuName = $"{GetCpuidCpuName() ?? GetCpuNameWMI()} ; {LogicalCoreCount} logical"; // WMI is very slow + CpuName = $"{GetCpuidCpuName() ?? GetCpuNameWMI()} ; {GetPhysicalCoreCount()} physical ; {LogicalCoreCount} logical"; // WMI is very slow (RamTotal, RamAvailable) = GetMemoryStats(); }