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

@ -25,6 +25,10 @@ struct Statistics
std::array<float, 16> gproj{};
std::array<float, 16> g2proj{};
// For widescreen heuristic.
float avg_persp_proj_viewport_ratio = 0;
float avg_ortho_proj_viewport_ratio = 0;
std::vector<BPFunctions::ScissorResult> scissors{};
size_t current_scissor = 0; // 0 => all, otherwise index + 1
int scissor_scale = 10;