From ddd2b598da8a1fdf1524e86272154f35451bf26e Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Sun, 12 Mar 2023 22:00:46 +0100 Subject: [PATCH] Return quarter value for PerfQuery in all backends. --- Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp | 2 +- Source/Core/VideoBackends/Metal/MTLPerfQuery.mm | 2 +- Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp b/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp index fe34a8ff45..983abc15c8 100644 --- a/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp +++ b/Source/Core/VideoBackends/D3D/D3DPerfQuery.cpp @@ -96,7 +96,7 @@ u32 PerfQuery::GetQueryResult(PerfQueryType type) result = m_results[PQG_EFB_COPY_CLOCKS].load(std::memory_order_relaxed); } - return result; + return result / 4; } void PerfQuery::FlushOne() diff --git a/Source/Core/VideoBackends/Metal/MTLPerfQuery.mm b/Source/Core/VideoBackends/Metal/MTLPerfQuery.mm index 76bddc1dce..37036f28aa 100644 --- a/Source/Core/VideoBackends/Metal/MTLPerfQuery.mm +++ b/Source/Core/VideoBackends/Metal/MTLPerfQuery.mm @@ -46,7 +46,7 @@ u32 Metal::PerfQuery::GetQueryResult(PerfQueryType type) result = m_results[PQG_EFB_COPY_CLOCKS].load(std::memory_order_relaxed); } - return result; + return result / 4; } void Metal::PerfQuery::FlushResults() diff --git a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp index 6303464251..b7e7cc0301 100644 --- a/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp +++ b/Source/Core/VideoBackends/OGL/OGLPerfQuery.cpp @@ -80,7 +80,7 @@ u32 PerfQuery::GetQueryResult(PerfQueryType type) result = m_results[PQG_EFB_COPY_CLOCKS].load(std::memory_order_relaxed); } - return result; + return result / 4; } // Implementations