VideoCommon: Show the average projection to viewport ratio in statistics

window.
This commit is contained in:
Jordan Woyak
2023-09-05 15:34:43 -05:00
parent 1805f6e381
commit 1e27183dff
5 changed files with 21 additions and 2 deletions

View File

@ -8,6 +8,7 @@
#include "Core/Config/SYSCONFSettings.h"
#include "Core/System.h"
#include "VideoCommon/Statistics.h"
#include "VideoCommon/VertexManagerBase.h"
std::unique_ptr<WidescreenManager> g_widescreen;
@ -117,6 +118,9 @@ void WidescreenManager::UpdateWidescreenHeuristic()
const auto& persp = flush_statistics.perspective;
const auto& ortho = flush_statistics.orthographic;
g_stats.avg_persp_proj_viewport_ratio = persp.average_ratio.Mean();
g_stats.avg_ortho_proj_viewport_ratio = ortho.average_ratio.Mean();
const auto ortho_looks_anamorphic = looks_anamorphic(ortho);
const auto persp_looks_normal = looks_normal(persp);