mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 02:30:32 +01:00
OSD: Show P and E cores separately
Also fixes HW info on Rosetta
This commit is contained in:
1 parent
20241f301b
commit
63ee30cbb3
2 files changed
+15
-9
No files matched your search
@@ -25,7 +25,6 @@
|
||||
#include "SIO/Pad/PadBase.h"
|
||||
#include "USB/USB.h"
|
||||
#include "VMManager.h"
|
||||
#include "cpuinfo.h"
|
||||
|
||||
#include "common/BitUtils.h"
|
||||
#include "common/FileSystem.h"
|
||||
@@ -307,10 +306,16 @@ __ri void ImGuiManager::DrawPerformanceOverlay(float& position_y, float scale, f
|
||||
{
|
||||
// CPU
|
||||
text.clear();
|
||||
text.append_format("CPU: {} ({}C/{}T)",
|
||||
cpuinfo_get_package(0)->name,
|
||||
cpuinfo_get_cores_count(),
|
||||
cpuinfo_get_processors_count());
|
||||
const CPUInfo& info = GetCPUInfo();
|
||||
bool has_small = info.num_small_cores > 0;
|
||||
bool has_ht = info.num_threads != info.num_big_cores + info.num_small_cores;
|
||||
text.append_format("CPU: {}", info.name);
|
||||
if (has_ht & has_small)
|
||||
text.append_format(" ({}P/{}E/{}T)", info.num_big_cores, info.num_small_cores, info.num_threads);
|
||||
else if (has_small)
|
||||
text.append_format(" ({}P/{}E)", info.num_big_cores, info.num_small_cores);
|
||||
else
|
||||
text.append_format(" ({}C/{}T)", info.num_big_cores, info.num_threads);
|
||||
DRAW_LINE(fixed_font, font_size, text.c_str(), IM_COL32(255, 255, 255, 255));
|
||||
|
||||
// GPU
|
||||
|
||||
+5
-4
@@ -2516,10 +2516,11 @@ void VMManager::LogCPUCapabilities()
|
||||
GetPhysicalMemory() / _1mb,
|
||||
static_cast<double>(GetPhysicalMemory()) / static_cast<double>(_1gb));
|
||||
|
||||
Console.WriteLnFmt(" Processor = {}", cpuinfo_get_package(0)->name);
|
||||
Console.WriteLnFmt(" Core Count = {} cores", cpuinfo_get_cores_count());
|
||||
Console.WriteLnFmt(" Thread Count = {} threads", cpuinfo_get_processors_count());
|
||||
Console.WriteLnFmt(" Cluster Count = {} clusters", cpuinfo_get_clusters_count());
|
||||
const CPUInfo& cpuinfo = GetCPUInfo();
|
||||
Console.WriteLnFmt(" Processor = {}", cpuinfo.name);
|
||||
Console.WriteLnFmt(" Core Count = {} cores", cpuinfo.num_big_cores + cpuinfo.num_small_cores);
|
||||
Console.WriteLnFmt(" Thread Count = {} threads", cpuinfo.num_threads);
|
||||
Console.WriteLnFmt(" Cluster Count = {} clusters", cpuinfo.num_clusters);
|
||||
#ifdef _WIN32
|
||||
LogUserPowerPlan();
|
||||
#endif
|
||||
|
||||
Reference in new issue
Block a user