mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2026-09-09 11:55:52 -05:00
VideoCommon: Added an option to showcase internal resolution, EFB width x height as screen overlay. Option to turn it on is a checkbox in screen on the OSD settings, in debug. This supports enhancements.
This commit is contained in:
@@ -43,6 +43,8 @@ void OnScreenDisplayPane::CreateLayout()
|
||||
performance_box->setLayout(performance_layout);
|
||||
|
||||
m_show_fps = new ConfigBool(tr("Show FPS"), Config::GFX_SHOW_FPS);
|
||||
m_show_internal_resolution =
|
||||
new ConfigBool(tr("Show Internal Resolution"), Config::GFX_SHOW_INTERNAL_RESOLUTION);
|
||||
m_show_ftimes = new ConfigBool(tr("Show Frame Times"), Config::GFX_SHOW_FTIMES);
|
||||
m_show_vps = new ConfigBool(tr("Show VPS"), Config::GFX_SHOW_VPS);
|
||||
m_show_vtimes = new ConfigBool(tr("Show VBlank Times"), Config::GFX_SHOW_VTIMES);
|
||||
@@ -104,6 +106,7 @@ void OnScreenDisplayPane::CreateLayout()
|
||||
|
||||
debug_layout->addWidget(m_show_statistics, 0, 0);
|
||||
debug_layout->addWidget(m_show_proj_statistics, 0, 1);
|
||||
debug_layout->addWidget(m_show_internal_resolution, 1, 0);
|
||||
|
||||
// Stack GroupBoxes
|
||||
auto* main_layout = new QVBoxLayout;
|
||||
@@ -150,6 +153,11 @@ void OnScreenDisplayPane::AddDescriptions()
|
||||
QT_TR_NOOP("Shows the number of distinct frames rendered per second as a measure of "
|
||||
"visual smoothness.<br><br><dolphin_emphasis>If unsure, leave this "
|
||||
"unchecked.</dolphin_emphasis>");
|
||||
|
||||
static const char TR_SHOW_INTERNAL_RESOLUTION_DESCRIPTION[] =
|
||||
QT_TR_NOOP("Shows the internal resolution in pixels, as a product of "
|
||||
"width and height. <br><br><dolphin_emphasis>If unsure, leave this "
|
||||
"unchecked.</dolphin_emphasis>");
|
||||
static const char TR_SHOW_FTIMES_DESCRIPTION[] =
|
||||
QT_TR_NOOP("Shows the average time in ms between each distinct rendered frame alongside "
|
||||
"the standard deviation.<br><br><dolphin_emphasis>If unsure, leave this "
|
||||
@@ -222,6 +230,7 @@ void OnScreenDisplayPane::AddDescriptions()
|
||||
m_font_size->SetDescription(tr(TR_OSD_FONT_SIZE_DESCRIPTION));
|
||||
|
||||
m_show_fps->SetDescription(tr(TR_SHOW_FPS_DESCRIPTION));
|
||||
m_show_internal_resolution->SetDescription(tr(TR_SHOW_INTERNAL_RESOLUTION_DESCRIPTION));
|
||||
m_show_ftimes->SetDescription(tr(TR_SHOW_FTIMES_DESCRIPTION));
|
||||
m_show_vps->SetDescription(tr(TR_SHOW_VPS_DESCRIPTION));
|
||||
m_show_vtimes->SetDescription(tr(TR_SHOW_VTIMES_DESCRIPTION));
|
||||
|
||||
Reference in New Issue
Block a user