From 1e27183dff95ece6301b7171d2cd573a36a2dd65 Mon Sep 17 00:00:00 2001 From: Jordan Woyak Date: Tue, 5 Sep 2023 15:34:43 -0500 Subject: VideoCommon: Show the average projection to viewport ratio in statistics window. --- Source/Core/VideoCommon/Widescreen.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Source/Core/VideoCommon/Widescreen.cpp') diff --git a/Source/Core/VideoCommon/Widescreen.cpp b/Source/Core/VideoCommon/Widescreen.cpp index d35ba758ec..cfb10ad479 100644 --- a/Source/Core/VideoCommon/Widescreen.cpp +++ b/Source/Core/VideoCommon/Widescreen.cpp @@ -8,6 +8,7 @@ #include "Core/Config/SYSCONFSettings.h" #include "Core/System.h" +#include "VideoCommon/Statistics.h" #include "VideoCommon/VertexManagerBase.h" std::unique_ptr 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); -- cgit v1.2.3