diff options
| author | Markus Wick <degasus@users.noreply.github.com> | 2016-09-27 13:07:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2016-09-27 13:07:35 +0200 |
| commit | cb759528e055a88eee63f1803f2fde273a4e3825 (patch) | |
| tree | 283264d1c78b0a7dcd217eb5c503e77d054e04ce /Source/Core/VideoBackends/D3D/PerfQuery.cpp | |
| parent | 3de4dc2186da871ac0e3fa76a23579a95bd5ba38 (diff) | |
| parent | 8be5717a60a4c4fbd29a0968a9f331152ff581e3 (diff) | |
Merge pull request #3893 from hthh/perf-query-bug
Improve PerfQuery accuracy
Diffstat (limited to 'Source/Core/VideoBackends/D3D/PerfQuery.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/PerfQuery.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D/PerfQuery.cpp b/Source/Core/VideoBackends/D3D/PerfQuery.cpp index 2eb3c6d89d..15574a9c76 100644 --- a/Source/Core/VideoBackends/D3D/PerfQuery.cpp +++ b/Source/Core/VideoBackends/D3D/PerfQuery.cpp @@ -86,7 +86,7 @@ u32 PerfQuery::GetQueryResult(PerfQueryType type) else if (type == PQ_EFB_COPY_CLOCKS) result = m_results[PQG_EFB_COPY_CLOCKS]; - return result / 4; + return result; } void PerfQuery::FlushOne() @@ -102,6 +102,8 @@ void PerfQuery::FlushOne() } // NOTE: Reported pixel metrics should be referenced to native resolution + // TODO: Dropping the lower 2 bits from this count should be closer to actual + // hardware behavior when drawing triangles. m_results[entry.query_type] += (u32)(result * EFB_WIDTH / g_renderer->GetTargetWidth() * EFB_HEIGHT / g_renderer->GetTargetHeight()); |
