shitty hack to test input lag with lag reduction. force 73:60 option for graphics

This commit is contained in:
R2DLiu 2020-07-26 23:13:11 -04:00
commit 6ed2a8acb0
7 changed files with 14 additions and 5 deletions

View file

@ -225,6 +225,7 @@
<item>Force 16:9</item>
<item>Force 4:3</item>
<item>Stretch To Window</item>
<item>Force 73:60 (Melee)</item>
</string-array>
<integer-array name="aspectRatioValues" translatable="false">
<item>0</item>

View file

@ -21,9 +21,9 @@ const Info<int> GFX_ADAPTER{{System::GFX, "Hardware", "Adapter"}, 0};
// Graphics.Settings
const Info<bool> GFX_WIDESCREEN_HACK{{System::GFX, "Settings", "wideScreenHack"}, false};
const Info<AspectMode> GFX_ASPECT_RATIO{{System::GFX, "Settings", "AspectRatio"}, AspectMode::Auto};
const Info<AspectMode> GFX_ASPECT_RATIO{{System::GFX, "Settings", "AspectRatio"}, AspectMode::Melee};
const Info<AspectMode> GFX_SUGGESTED_ASPECT_RATIO{{System::GFX, "Settings", "SuggestedAspectRatio"},
AspectMode::Auto};
AspectMode::Melee};
const Info<bool> GFX_CROP{{System::GFX, "Settings", "Crop"}, false};
const Info<int> GFX_SAFE_TEXTURE_CACHE_COLOR_SAMPLES{
{System::GFX, "Settings", "SafeTextureCacheColorSamples"}, 128};

View file

@ -56,7 +56,7 @@ void GeneralWidget::CreateWidgets()
m_backend_combo = new QComboBox();
m_aspect_combo =
new GraphicsChoice({tr("Auto"), tr("Force 16:9"), tr("Force 4:3"), tr("Stretch to Window")},
new GraphicsChoice({tr("Auto"), tr("Force 16:9"), tr("Force 4:3"), tr("Stretch to Window"), tr("Force 73:60 (Melee)") },
Config::GFX_ASPECT_RATIO);
m_adapter_combo = new QComboBox;
m_enable_vsync = new GraphicsBool(tr("V-Sync"), Config::GFX_VSYNC);
@ -222,7 +222,7 @@ void GeneralWidget::AddDescriptions()
"Selects which aspect ratio to use when rendering.\n\nAuto: Uses the native aspect "
"ratio\nForce 16:9: Mimics an analog TV with a widescreen aspect ratio.\nForce 4:3: "
"Mimics a standard 4:3 analog TV.\nStretch to Window: Stretches the picture to the "
"window size.\n\nIf unsure, select Auto.");
"window size.\nForce 73:60 (Melee): Melee's standard resolution\nIf unsure, select Force 73:60 (Melee).");
static const char TR_VSYNC_DESCRIPTION[] =
QT_TR_NOOP("Waits for vertical blanks in order to prevent tearing.\n\nDecreases performance "
"if emulation speed is below 100%.\n\nIf unsure, leave this unchecked.");

View file

@ -387,9 +387,12 @@ void HotkeyScheduler::Run()
OSD::AddMessage("Force 16:9");
break;
case AspectMode::Auto:
default:
OSD::AddMessage("Auto");
break;
case AspectMode::Melee:
default:
OSD::AddMessage("Force 73:60 (Melee)");
break;
}
}
if (IsHotkey(HK_TOGGLE_EFBCOPIES))

View file

@ -276,6 +276,7 @@ static void BPWritten(const BPCmd& bp)
}
else
{
if (destAddr == 0x0) { destAddr = 0x4f0c00; }
// We should be able to get away with deactivating the current bbox tracking
// here. Not sure if there's a better spot to put this.
// the number of lines copied is determined by the y scale * source efb height

View file

@ -583,6 +583,9 @@ float Renderer::CalculateDrawAspectRatio() const
{
const auto aspect_mode = g_ActiveConfig.aspect_mode;
if (aspect_mode == AspectMode::Melee)
return (static_cast<float>(73) / static_cast<float>(60));
// If stretch is enabled, we prefer the aspect ratio of the window.
if (aspect_mode == AspectMode::Stretch)
return (static_cast<float>(m_backbuffer_width) / static_cast<float>(m_backbuffer_height));

View file

@ -31,6 +31,7 @@ enum class AspectMode : int
AnalogWide,
Analog,
Stretch,
Melee
};
enum class StereoMode : int