Skip to content

Commit

Permalink
OSD: Add GPU Info
Browse files Browse the repository at this point in the history
  • Loading branch information
kamfretoz committed Sep 13, 2024
1 parent 1d948a4 commit 34527ed
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pcsx2/ImGui/ImGuiOverlays.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 34527ed

Please sign in to comment.