diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2023-09-05 15:34:43 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2024-04-18 14:45:28 -0500 |
| commit | 1e27183dff95ece6301b7171d2cd573a36a2dd65 (patch) | |
| tree | 311498ce1ec411d7c9b6dd04335dbf2a65e9a7f7 /Source/Core/VideoCommon/Widescreen.cpp | |
| parent | 1805f6e38158c90b9108895d42ca6cc37d0aeff7 (diff) | |
VideoCommon: Show the average projection to viewport ratio in statistics
window.
Diffstat (limited to 'Source/Core/VideoCommon/Widescreen.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Widescreen.cpp | 4 |
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); |
