summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Widescreen.cpp
diff options
context:
space:
mode:
authorAdmiral H. Curtiss <pikachu025@gmail.com>2024-04-20 04:31:09 +0200
committerGitHub <noreply@github.com>2024-04-20 04:31:09 +0200
commitd6be375f15e062a1f3e4a8d3d595762692685fa7 (patch)
treea62c4e6e572257e53eddfc4ed38064602e61ec58 /Source/Core/VideoCommon/Widescreen.cpp
parent1805f6e38158c90b9108895d42ca6cc37d0aeff7 (diff)
parentdf7dd5d36a4e817c1c555a869a2752d61f4318e6 (diff)
Merge pull request #12164 from jordan-woyak/log-avg-proj-view-ratio
VideoCommon: Show average projection to viewport ratio for widescreen heursitic game ini values.
Diffstat (limited to 'Source/Core/VideoCommon/Widescreen.cpp')
-rw-r--r--Source/Core/VideoCommon/Widescreen.cpp4
1 files changed, 4 insertions, 0 deletions
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<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);