Print Physical Core count at start up

This commit is contained in:
sunshineinabox 2023-07-16 13:52:24 -07:00
parent f2847753dc
commit 2f19ed50ba
3 changed files with 3 additions and 3 deletions

View file

@ -40,7 +40,7 @@ namespace Ryujinx.Common.SystemInfo
ulong.TryParse(memDict["MemTotal"]?.Split(' ')[0], NumberStyles.Integer, CultureInfo.InvariantCulture, out ulong totalKiB); 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); 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; RamTotal = totalKiB * 1024;
RamAvailable = availableKiB * 1024; RamAvailable = availableKiB * 1024;
} }

View file

@ -26,7 +26,7 @@ namespace Ryujinx.Common.SystemInfo
totalRAM = 0; totalRAM = 0;
} }
CpuName = $"{cpuName} ; {LogicalCoreCount} logical"; CpuName = $"{cpuName} ; {GetPhysicalCoreCount()} physical ; {LogicalCoreCount} logical";
RamTotal = totalRAM; RamTotal = totalRAM;
RamAvailable = GetVMInfoAvailableMemory(); RamAvailable = GetVMInfoAvailableMemory();
} }

View file

@ -11,7 +11,7 @@ namespace Ryujinx.Common.SystemInfo
{ {
internal WindowsSystemInfo() 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(); (RamTotal, RamAvailable) = GetMemoryStats();
} }