mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
RenderBase: Allow widescreen heuristic's transition threshold to be overridden by onion config
This commit is contained in:
parent
6f6eb73667
commit
de781a6fa7
5 changed files with 11 additions and 5 deletions
|
@ -70,13 +70,13 @@ void WidescreenManager::UpdateWidescreenHeuristic()
|
|||
|
||||
// Modify the threshold based on which aspect ratio we're already using:
|
||||
// If the game's in 4:3, it probably won't switch to anamorphic, and vice-versa.
|
||||
static constexpr u32 TRANSITION_THRESHOLD = 3;
|
||||
const u32 transition_threshold = g_ActiveConfig.widescreen_heuristic_transition_threshold;
|
||||
|
||||
const auto looks_normal = [](auto& counts) {
|
||||
return counts.normal_vertex_count > counts.anamorphic_vertex_count * TRANSITION_THRESHOLD;
|
||||
const auto looks_normal = [transition_threshold](auto& counts) {
|
||||
return counts.normal_vertex_count > counts.anamorphic_vertex_count * transition_threshold;
|
||||
};
|
||||
const auto looks_anamorphic = [](auto& counts) {
|
||||
return counts.anamorphic_vertex_count > counts.normal_vertex_count * TRANSITION_THRESHOLD;
|
||||
const auto looks_anamorphic = [transition_threshold](auto& counts) {
|
||||
return counts.anamorphic_vertex_count > counts.normal_vertex_count * transition_threshold;
|
||||
};
|
||||
|
||||
const auto& persp = flush_statistics.perspective;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue