mirror of
https://github.com/stenzek/duckstation.git
synced 2025-07-19 00:20:12 +00:00
GPU: Send read command in SW if stats are enabled
Won't do anything, but it does update the counter.
This commit is contained in:
parent
5d42bbc49f
commit
13e4515118
@ -1911,7 +1911,9 @@ void GPU::CalculateDrawRect(u32 window_width, u32 window_height, u32 crtc_displa
|
|||||||
void GPU::ReadVRAM(u16 x, u16 y, u16 width, u16 height)
|
void GPU::ReadVRAM(u16 x, u16 y, u16 width, u16 height)
|
||||||
{
|
{
|
||||||
// If we're using the software renderer, we only need to sync the thread.
|
// If we're using the software renderer, we only need to sync the thread.
|
||||||
if (!GPUBackend::IsUsingHardwareBackend() || g_settings.gpu_use_software_renderer_for_readbacks)
|
// If stats are enabled, still send the packet to update the read counter.
|
||||||
|
if ((!GPUBackend::IsUsingHardwareBackend() || g_settings.gpu_use_software_renderer_for_readbacks) &&
|
||||||
|
!g_settings.display_show_gpu_stats)
|
||||||
{
|
{
|
||||||
GPUBackend::SyncGPUThread(true);
|
GPUBackend::SyncGPUThread(true);
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user