From 34527ed7a1f7b2a37370b6530c12a5898661f9e8 Mon Sep 17 00:00:00 2001 From: KamFretoZ <14798312+kamfretoz@users.noreply.github.com> Date: Fri, 13 Sep 2024 14:09:15 +0700 Subject: [PATCH] OSD: Add GPU Info --- pcsx2/ImGui/ImGuiOverlays.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pcsx2/ImGui/ImGuiOverlays.cpp b/pcsx2/ImGui/ImGuiOverlays.cpp index c997fcec46db31..aa394e529db560 100644 --- a/pcsx2/ImGui/ImGuiOverlays.cpp +++ b/pcsx2/ImGui/ImGuiOverlays.cpp @@ -213,13 +213,20 @@ __ri void ImGuiManager::DrawPerformanceOverlay(float& position_y, float scale, f if (GSConfig.OsdShowHardwareInfo) { + // CPU text.clear(); text.append_format("CPU: {} ({}C/{}T)", cpuinfo_get_package(0)->name, cpuinfo_get_cores_count(), cpuinfo_get_processors_count()); DRAW_LINE(fixed_font, text.c_str(), IM_COL32(255, 255, 255, 255)); - } + + // GPU + text.clear(); + text.append_format("GPU: {}", g_gs_device->GetName()); + DRAW_LINE(fixed_font, text.c_str(), IM_COL32(255, 255, 255, 255)); + } + if (GSConfig.OsdShowCPU) {