mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
OGL: Fix perf metrics being overcounted when using a non-native internal resolution.
This commit is contained in:
parent
4058b4c38a
commit
d1acb0a937
2 changed files with 7 additions and 4 deletions
|
@ -103,6 +103,7 @@ void PerfQuery::FlushOne()
|
|||
hr = D3D::context->GetData(entry.query, &result, sizeof(result), 0);
|
||||
}
|
||||
|
||||
// NOTE: Reported pixel metrics should be referenced to native resolution
|
||||
m_results[entry.query_type] += result * EFB_WIDTH * EFB_HEIGHT / g_renderer->GetTargetWidth() / g_renderer->GetTargetHeight();
|
||||
|
||||
m_query_read_pos = (m_query_read_pos + 1) % ARRAYSIZE(m_query_buffer);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue