mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-27 04:36:18 +00:00
shitty hack to test input lag with lag reduction. force 73:60 option for graphics
This commit is contained in:
parent
4fbae75af7
commit
6ed2a8acb0
7 changed files with 14 additions and 5 deletions
|
@ -225,6 +225,7 @@
|
||||||
<item>Force 16:9</item>
|
<item>Force 16:9</item>
|
||||||
<item>Force 4:3</item>
|
<item>Force 4:3</item>
|
||||||
<item>Stretch To Window</item>
|
<item>Stretch To Window</item>
|
||||||
|
<item>Force 73:60 (Melee)</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
<integer-array name="aspectRatioValues" translatable="false">
|
<integer-array name="aspectRatioValues" translatable="false">
|
||||||
<item>0</item>
|
<item>0</item>
|
||||||
|
|
|
@ -21,9 +21,9 @@ const Info<int> GFX_ADAPTER{{System::GFX, "Hardware", "Adapter"}, 0};
|
||||||
// Graphics.Settings
|
// Graphics.Settings
|
||||||
|
|
||||||
const Info<bool> GFX_WIDESCREEN_HACK{{System::GFX, "Settings", "wideScreenHack"}, false};
|
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"},
|
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<bool> GFX_CROP{{System::GFX, "Settings", "Crop"}, false};
|
||||||
const Info<int> GFX_SAFE_TEXTURE_CACHE_COLOR_SAMPLES{
|
const Info<int> GFX_SAFE_TEXTURE_CACHE_COLOR_SAMPLES{
|
||||||
{System::GFX, "Settings", "SafeTextureCacheColorSamples"}, 128};
|
{System::GFX, "Settings", "SafeTextureCacheColorSamples"}, 128};
|
||||||
|
|
|
@ -56,7 +56,7 @@ void GeneralWidget::CreateWidgets()
|
||||||
|
|
||||||
m_backend_combo = new QComboBox();
|
m_backend_combo = new QComboBox();
|
||||||
m_aspect_combo =
|
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);
|
Config::GFX_ASPECT_RATIO);
|
||||||
m_adapter_combo = new QComboBox;
|
m_adapter_combo = new QComboBox;
|
||||||
m_enable_vsync = new GraphicsBool(tr("V-Sync"), Config::GFX_VSYNC);
|
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 "
|
"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: "
|
"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 "
|
"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[] =
|
static const char TR_VSYNC_DESCRIPTION[] =
|
||||||
QT_TR_NOOP("Waits for vertical blanks in order to prevent tearing.\n\nDecreases performance "
|
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.");
|
"if emulation speed is below 100%.\n\nIf unsure, leave this unchecked.");
|
||||||
|
|
|
@ -387,9 +387,12 @@ void HotkeyScheduler::Run()
|
||||||
OSD::AddMessage("Force 16:9");
|
OSD::AddMessage("Force 16:9");
|
||||||
break;
|
break;
|
||||||
case AspectMode::Auto:
|
case AspectMode::Auto:
|
||||||
default:
|
|
||||||
OSD::AddMessage("Auto");
|
OSD::AddMessage("Auto");
|
||||||
break;
|
break;
|
||||||
|
case AspectMode::Melee:
|
||||||
|
default:
|
||||||
|
OSD::AddMessage("Force 73:60 (Melee)");
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (IsHotkey(HK_TOGGLE_EFBCOPIES))
|
if (IsHotkey(HK_TOGGLE_EFBCOPIES))
|
||||||
|
|
|
@ -276,6 +276,7 @@ static void BPWritten(const BPCmd& bp)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (destAddr == 0x0) { destAddr = 0x4f0c00; }
|
||||||
// We should be able to get away with deactivating the current bbox tracking
|
// 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.
|
// 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
|
// the number of lines copied is determined by the y scale * source efb height
|
||||||
|
|
|
@ -583,6 +583,9 @@ float Renderer::CalculateDrawAspectRatio() const
|
||||||
{
|
{
|
||||||
const auto aspect_mode = g_ActiveConfig.aspect_mode;
|
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 stretch is enabled, we prefer the aspect ratio of the window.
|
||||||
if (aspect_mode == AspectMode::Stretch)
|
if (aspect_mode == AspectMode::Stretch)
|
||||||
return (static_cast<float>(m_backbuffer_width) / static_cast<float>(m_backbuffer_height));
|
return (static_cast<float>(m_backbuffer_width) / static_cast<float>(m_backbuffer_height));
|
||||||
|
|
|
@ -31,6 +31,7 @@ enum class AspectMode : int
|
||||||
AnalogWide,
|
AnalogWide,
|
||||||
Analog,
|
Analog,
|
||||||
Stretch,
|
Stretch,
|
||||||
|
Melee
|
||||||
};
|
};
|
||||||
|
|
||||||
enum class StereoMode : int
|
enum class StereoMode : int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue