From 3ecc19c43f88c16b91faa65d4d6e3373cd0358a7 Mon Sep 17 00:00:00 2001 From: Stenzek Date: Sun, 31 Mar 2024 14:02:44 +1000 Subject: [PATCH] GPU: Fix HW readback counter --- src/core/gpu.cpp | 2 +- src/core/gpu_commands.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/gpu.cpp b/src/core/gpu.cpp index 7ba776a0e..3d87e9f1a 100644 --- a/src/core/gpu.cpp +++ b/src/core/gpu.cpp @@ -2709,7 +2709,7 @@ void GPU::GetStatsString(SmallStringBase& str) { str.format("{} HW | {} P | {} DC | {} RP | {} RB | {} C | {} W", GPUDevice::RenderAPIToString(g_gpu_device->GetRenderAPI()), m_stats.num_primitives, - m_stats.host_num_draws, m_stats.host_num_render_passes, m_stats.num_reads, m_stats.num_copies, + m_stats.host_num_draws, m_stats.host_num_render_passes, m_stats.host_num_downloads, m_stats.num_copies, m_stats.num_writes); } else diff --git a/src/core/gpu_commands.cpp b/src/core/gpu_commands.cpp index 36e24eb63..6ad306b7e 100644 --- a/src/core/gpu_commands.cpp +++ b/src/core/gpu_commands.cpp @@ -584,6 +584,7 @@ bool GPU::HandleCopyRectangleVRAMToCPUCommand() } // switch to pixel-by-pixel read state + m_counters.num_reads++; m_blitter_state = BlitterState::ReadingVRAM; m_command_total_words = 0; return true;