mirror of
https://github.com/RetroDECK/Duckstation.git
synced 2024-11-23 06:15:38 +00:00
GPU: Fix HW readback counter
This commit is contained in:
parent
8ebda3cdc8
commit
3ecc19c43f
|
@ -2709,7 +2709,7 @@ void GPU::GetStatsString(SmallStringBase& str)
|
||||||
{
|
{
|
||||||
str.format("{} HW | {} P | {} DC | {} RP | {} RB | {} C | {} W",
|
str.format("{} HW | {} P | {} DC | {} RP | {} RB | {} C | {} W",
|
||||||
GPUDevice::RenderAPIToString(g_gpu_device->GetRenderAPI()), m_stats.num_primitives,
|
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);
|
m_stats.num_writes);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -584,6 +584,7 @@ bool GPU::HandleCopyRectangleVRAMToCPUCommand()
|
||||||
}
|
}
|
||||||
|
|
||||||
// switch to pixel-by-pixel read state
|
// switch to pixel-by-pixel read state
|
||||||
|
m_counters.num_reads++;
|
||||||
m_blitter_state = BlitterState::ReadingVRAM;
|
m_blitter_state = BlitterState::ReadingVRAM;
|
||||||
m_command_total_words = 0;
|
m_command_total_words = 0;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Reference in a new issue