2017-06-15 17:43:01 -06:00
|
|
|
// Copyright 2017 Dolphin Emulator Project
|
2021-07-04 19:22:19 -06:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2017-06-15 17:43:01 -06:00
|
|
|
|
2018-07-06 16:40:15 -06:00
|
|
|
#include "DolphinQt/Config/Graphics/AdvancedWidget.h"
|
2017-06-15 17:43:01 -06:00
|
|
|
|
|
|
|
#include <QCheckBox>
|
|
|
|
#include <QGridLayout>
|
|
|
|
#include <QGroupBox>
|
2019-07-17 12:15:25 -06:00
|
|
|
#include <QLabel>
|
|
|
|
#include <QSpinBox>
|
2017-06-15 17:43:01 -06:00
|
|
|
#include <QVBoxLayout>
|
|
|
|
|
|
|
|
#include "Core/Config/GraphicsSettings.h"
|
2018-05-04 13:33:24 -06:00
|
|
|
#include "Core/Config/SYSCONFSettings.h"
|
2017-06-15 17:43:01 -06:00
|
|
|
#include "Core/ConfigManager.h"
|
2017-09-04 12:12:13 -06:00
|
|
|
#include "Core/Core.h"
|
2018-05-04 13:33:24 -06:00
|
|
|
|
2018-07-06 16:40:15 -06:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsBool.h"
|
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsChoice.h"
|
2019-07-17 12:15:25 -06:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsInteger.h"
|
2018-07-06 16:40:15 -06:00
|
|
|
#include "DolphinQt/Config/Graphics/GraphicsWindow.h"
|
2020-10-20 19:01:33 -06:00
|
|
|
#include "DolphinQt/Config/ToolTipControls/ToolTipCheckBox.h"
|
2022-03-30 23:44:32 -06:00
|
|
|
#include "DolphinQt/QtUtils/SignalBlocking.h"
|
2018-07-06 16:40:15 -06:00
|
|
|
#include "DolphinQt/Settings.h"
|
2018-05-27 19:48:04 -06:00
|
|
|
|
2017-06-15 17:43:01 -06:00
|
|
|
#include "VideoCommon/VideoConfig.h"
|
|
|
|
|
2020-10-20 19:01:33 -06:00
|
|
|
AdvancedWidget::AdvancedWidget(GraphicsWindow* parent)
|
2017-06-15 17:43:01 -06:00
|
|
|
{
|
|
|
|
CreateWidgets();
|
|
|
|
LoadSettings();
|
|
|
|
ConnectWidgets();
|
|
|
|
AddDescriptions();
|
|
|
|
|
|
|
|
connect(parent, &GraphicsWindow::BackendChanged, this, &AdvancedWidget::OnBackendChanged);
|
2022-08-07 19:25:19 -06:00
|
|
|
connect(&Settings::Instance(), &Settings::EmulationStateChanged, this, [this](Core::State state) {
|
|
|
|
OnEmulationStateChanged(state != Core::State::Uninitialized);
|
|
|
|
});
|
2017-06-15 17:43:01 -06:00
|
|
|
|
|
|
|
OnBackendChanged();
|
2018-07-13 04:38:21 -06:00
|
|
|
OnEmulationStateChanged(Core::GetState() != Core::State::Uninitialized);
|
2017-06-15 17:43:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void AdvancedWidget::CreateWidgets()
|
|
|
|
{
|
|
|
|
auto* main_layout = new QVBoxLayout;
|
|
|
|
|
2022-10-26 13:17:15 -06:00
|
|
|
// Performance
|
|
|
|
auto* performance_box = new QGroupBox(tr("Performance Statistics"));
|
|
|
|
auto* performance_layout = new QGridLayout();
|
|
|
|
performance_box->setLayout(performance_layout);
|
|
|
|
|
|
|
|
m_show_fps = new GraphicsBool(tr("Show FPS"), Config::GFX_SHOW_FPS);
|
2022-12-23 17:52:53 -07:00
|
|
|
m_show_ftimes = new GraphicsBool(tr("Show Frame Times"), Config::GFX_SHOW_FTIMES);
|
2022-10-26 13:17:15 -06:00
|
|
|
m_show_vps = new GraphicsBool(tr("Show VPS"), Config::GFX_SHOW_VPS);
|
2022-12-23 17:52:53 -07:00
|
|
|
m_show_vtimes = new GraphicsBool(tr("Show VBlank Times"), Config::GFX_SHOW_VTIMES);
|
|
|
|
m_show_graphs = new GraphicsBool(tr("Show Performance Graphs"), Config::GFX_SHOW_GRAPHS);
|
2022-10-26 13:17:15 -06:00
|
|
|
m_show_speed = new GraphicsBool(tr("Show % Speed"), Config::GFX_SHOW_SPEED);
|
|
|
|
m_show_speed_colors = new GraphicsBool(tr("Show Speed Colors"), Config::GFX_SHOW_SPEED_COLORS);
|
|
|
|
m_perf_samp_window = new GraphicsInteger(0, 10000, Config::GFX_PERF_SAMP_WINDOW, 100);
|
2022-12-26 15:20:06 -07:00
|
|
|
m_perf_samp_window->SetTitle(tr("Performance Sample Window (ms)"));
|
2022-10-26 13:17:15 -06:00
|
|
|
m_log_render_time =
|
|
|
|
new GraphicsBool(tr("Log Render Time to File"), Config::GFX_LOG_RENDER_TIME_TO_FILE);
|
|
|
|
|
|
|
|
performance_layout->addWidget(m_show_fps, 0, 0);
|
2022-12-23 17:52:53 -07:00
|
|
|
performance_layout->addWidget(m_show_ftimes, 0, 1);
|
2022-10-26 13:17:15 -06:00
|
|
|
performance_layout->addWidget(m_show_vps, 1, 0);
|
2022-12-23 17:52:53 -07:00
|
|
|
performance_layout->addWidget(m_show_vtimes, 1, 1);
|
|
|
|
performance_layout->addWidget(m_show_speed, 2, 0);
|
|
|
|
performance_layout->addWidget(m_show_graphs, 2, 1);
|
|
|
|
performance_layout->addWidget(new QLabel(tr("Performance Sample Window (ms):")), 3, 0);
|
|
|
|
performance_layout->addWidget(m_perf_samp_window, 3, 1);
|
|
|
|
performance_layout->addWidget(m_log_render_time, 4, 0);
|
|
|
|
performance_layout->addWidget(m_show_speed_colors, 4, 1);
|
2022-10-26 13:17:15 -06:00
|
|
|
|
2017-06-15 17:43:01 -06:00
|
|
|
// Debugging
|
|
|
|
auto* debugging_box = new QGroupBox(tr("Debugging"));
|
|
|
|
auto* debugging_layout = new QGridLayout();
|
|
|
|
debugging_box->setLayout(debugging_layout);
|
|
|
|
|
|
|
|
m_enable_wireframe = new GraphicsBool(tr("Enable Wireframe"), Config::GFX_ENABLE_WIREFRAME);
|
|
|
|
m_show_statistics = new GraphicsBool(tr("Show Statistics"), Config::GFX_OVERLAY_STATS);
|
|
|
|
m_enable_format_overlay =
|
|
|
|
new GraphicsBool(tr("Texture Format Overlay"), Config::GFX_TEXFMT_OVERLAY_ENABLE);
|
|
|
|
m_enable_api_validation =
|
|
|
|
new GraphicsBool(tr("Enable API Validation Layers"), Config::GFX_ENABLE_VALIDATION_LAYER);
|
|
|
|
|
|
|
|
debugging_layout->addWidget(m_enable_wireframe, 0, 0);
|
|
|
|
debugging_layout->addWidget(m_show_statistics, 0, 1);
|
|
|
|
debugging_layout->addWidget(m_enable_format_overlay, 1, 0);
|
|
|
|
debugging_layout->addWidget(m_enable_api_validation, 1, 1);
|
|
|
|
|
|
|
|
// Utility
|
|
|
|
auto* utility_box = new QGroupBox(tr("Utility"));
|
|
|
|
auto* utility_layout = new QGridLayout();
|
|
|
|
utility_box->setLayout(utility_layout);
|
|
|
|
|
|
|
|
m_load_custom_textures = new GraphicsBool(tr("Load Custom Textures"), Config::GFX_HIRES_TEXTURES);
|
|
|
|
m_prefetch_custom_textures =
|
|
|
|
new GraphicsBool(tr("Prefetch Custom Textures"), Config::GFX_CACHE_HIRES_TEXTURES);
|
|
|
|
m_dump_efb_target = new GraphicsBool(tr("Dump EFB Target"), Config::GFX_DUMP_EFB_TARGET);
|
2021-05-26 18:32:02 -06:00
|
|
|
m_dump_xfb_target = new GraphicsBool(tr("Dump XFB Target"), Config::GFX_DUMP_XFB_TARGET);
|
2018-05-02 22:24:56 -06:00
|
|
|
m_disable_vram_copies =
|
|
|
|
new GraphicsBool(tr("Disable EFB VRAM Copies"), Config::GFX_HACK_DISABLE_COPY_TO_VRAM);
|
2022-03-30 23:44:32 -06:00
|
|
|
m_enable_graphics_mods = new ToolTipCheckBox(tr("Enable Graphics Mods"));
|
2017-06-15 17:43:01 -06:00
|
|
|
|
2019-06-16 16:04:51 -06:00
|
|
|
utility_layout->addWidget(m_load_custom_textures, 0, 0);
|
|
|
|
utility_layout->addWidget(m_prefetch_custom_textures, 0, 1);
|
|
|
|
|
2020-04-26 15:40:47 -06:00
|
|
|
utility_layout->addWidget(m_disable_vram_copies, 1, 0);
|
2022-04-06 23:00:38 -06:00
|
|
|
utility_layout->addWidget(m_enable_graphics_mods, 1, 1);
|
2019-06-16 16:04:51 -06:00
|
|
|
|
2022-04-06 23:00:38 -06:00
|
|
|
utility_layout->addWidget(m_dump_efb_target, 2, 0);
|
2021-05-26 18:32:02 -06:00
|
|
|
utility_layout->addWidget(m_dump_xfb_target, 2, 1);
|
2020-04-26 15:40:47 -06:00
|
|
|
|
2020-05-04 22:07:06 -06:00
|
|
|
// Texture dumping
|
|
|
|
auto* texture_dump_box = new QGroupBox(tr("Texture Dumping"));
|
|
|
|
auto* texture_dump_layout = new QGridLayout();
|
|
|
|
texture_dump_box->setLayout(texture_dump_layout);
|
|
|
|
m_dump_textures = new GraphicsBool(tr("Enable"), Config::GFX_DUMP_TEXTURES);
|
|
|
|
m_dump_base_textures = new GraphicsBool(tr("Dump Base Textures"), Config::GFX_DUMP_BASE_TEXTURES);
|
|
|
|
m_dump_mip_textures = new GraphicsBool(tr("Dump Mip Maps"), Config::GFX_DUMP_MIP_TEXTURES);
|
|
|
|
|
|
|
|
texture_dump_layout->addWidget(m_dump_textures, 0, 0);
|
|
|
|
|
|
|
|
texture_dump_layout->addWidget(m_dump_base_textures, 1, 0);
|
|
|
|
texture_dump_layout->addWidget(m_dump_mip_textures, 1, 1);
|
|
|
|
|
2019-07-17 12:02:08 -06:00
|
|
|
// Frame dumping
|
|
|
|
auto* dump_box = new QGroupBox(tr("Frame Dumping"));
|
|
|
|
auto* dump_layout = new QGridLayout();
|
|
|
|
dump_box->setLayout(dump_layout);
|
|
|
|
|
|
|
|
m_use_fullres_framedumps = new GraphicsBool(tr("Dump at Internal Resolution"),
|
|
|
|
Config::GFX_INTERNAL_RESOLUTION_FRAME_DUMPS);
|
|
|
|
m_dump_use_ffv1 = new GraphicsBool(tr("Use Lossless Codec (FFV1)"), Config::GFX_USE_FFV1);
|
2019-07-17 12:15:25 -06:00
|
|
|
m_dump_bitrate = new GraphicsInteger(0, 1000000, Config::GFX_BITRATE_KBPS, 1000);
|
2021-10-01 18:56:46 -06:00
|
|
|
m_png_compression_level = new GraphicsInteger(0, 9, Config::GFX_PNG_COMPRESSION_LEVEL);
|
2019-07-17 12:02:08 -06:00
|
|
|
|
|
|
|
dump_layout->addWidget(m_use_fullres_framedumps, 0, 0);
|
2017-06-15 17:43:01 -06:00
|
|
|
#if defined(HAVE_FFMPEG)
|
2019-07-17 12:02:08 -06:00
|
|
|
dump_layout->addWidget(m_dump_use_ffv1, 0, 1);
|
2019-07-17 12:15:25 -06:00
|
|
|
dump_layout->addWidget(new QLabel(tr("Bitrate (kbps):")), 1, 0);
|
|
|
|
dump_layout->addWidget(m_dump_bitrate, 1, 1);
|
2017-06-15 17:43:01 -06:00
|
|
|
#endif
|
2021-10-01 18:56:46 -06:00
|
|
|
dump_layout->addWidget(new QLabel(tr("PNG Compression Level:")), 2, 0);
|
|
|
|
m_png_compression_level->SetTitle(tr("PNG Compression Level"));
|
|
|
|
dump_layout->addWidget(m_png_compression_level, 2, 1);
|
2017-06-15 17:43:01 -06:00
|
|
|
|
|
|
|
// Misc.
|
2017-07-23 04:58:32 -06:00
|
|
|
auto* misc_box = new QGroupBox(tr("Misc"));
|
2017-06-15 17:43:01 -06:00
|
|
|
auto* misc_layout = new QGridLayout();
|
|
|
|
misc_box->setLayout(misc_layout);
|
|
|
|
|
|
|
|
m_enable_cropping = new GraphicsBool(tr("Crop"), Config::GFX_CROP);
|
2020-10-20 19:01:33 -06:00
|
|
|
m_enable_prog_scan = new ToolTipCheckBox(tr("Enable Progressive Scan"));
|
2018-08-03 09:00:04 -06:00
|
|
|
m_backend_multithreading =
|
2019-06-08 12:34:58 -06:00
|
|
|
new GraphicsBool(tr("Backend Multithreading"), Config::GFX_BACKEND_MULTITHREADING);
|
2022-07-24 02:51:22 -06:00
|
|
|
m_prefer_vs_for_point_line_expansion = new GraphicsBool(
|
2022-11-26 14:58:46 -07:00
|
|
|
// i18n: VS is short for vertex shaders.
|
2022-07-24 02:51:22 -06:00
|
|
|
tr("Prefer VS for Point/Line Expansion"), Config::GFX_PREFER_VS_FOR_LINE_POINT_EXPANSION);
|
2022-12-11 23:36:13 -07:00
|
|
|
m_cpu_cull = new GraphicsBool(tr("Cull Vertices on the CPU"), Config::GFX_CPU_CULL);
|
2017-06-15 17:43:01 -06:00
|
|
|
|
|
|
|
misc_layout->addWidget(m_enable_cropping, 0, 0);
|
|
|
|
misc_layout->addWidget(m_enable_prog_scan, 0, 1);
|
2018-08-03 09:00:04 -06:00
|
|
|
misc_layout->addWidget(m_backend_multithreading, 1, 0);
|
2022-07-24 02:51:22 -06:00
|
|
|
misc_layout->addWidget(m_prefer_vs_for_point_line_expansion, 1, 1);
|
2022-12-11 23:36:13 -07:00
|
|
|
misc_layout->addWidget(m_cpu_cull, 2, 0);
|
2017-06-15 17:43:01 -06:00
|
|
|
#ifdef _WIN32
|
|
|
|
m_borderless_fullscreen =
|
|
|
|
new GraphicsBool(tr("Borderless Fullscreen"), Config::GFX_BORDERLESS_FULLSCREEN);
|
|
|
|
|
2022-12-11 23:36:13 -07:00
|
|
|
misc_layout->addWidget(m_borderless_fullscreen, 2, 1);
|
2017-06-15 17:43:01 -06:00
|
|
|
#endif
|
|
|
|
|
2019-03-08 19:36:32 -07:00
|
|
|
// Experimental.
|
|
|
|
auto* experimental_box = new QGroupBox(tr("Experimental"));
|
|
|
|
auto* experimental_layout = new QGridLayout();
|
|
|
|
experimental_box->setLayout(experimental_layout);
|
|
|
|
|
|
|
|
m_defer_efb_access_invalidation =
|
|
|
|
new GraphicsBool(tr("Defer EFB Cache Invalidation"), Config::GFX_HACK_EFB_DEFER_INVALIDATION);
|
2021-10-15 12:57:53 -06:00
|
|
|
m_manual_texture_sampling =
|
|
|
|
new GraphicsBool(tr("Manual Texture Sampling"), Config::GFX_HACK_FAST_TEXTURE_SAMPLING, true);
|
2019-03-08 19:36:32 -07:00
|
|
|
|
|
|
|
experimental_layout->addWidget(m_defer_efb_access_invalidation, 0, 0);
|
2021-10-15 12:57:53 -06:00
|
|
|
experimental_layout->addWidget(m_manual_texture_sampling, 0, 1);
|
2019-03-08 19:36:32 -07:00
|
|
|
|
2022-10-26 13:17:15 -06:00
|
|
|
main_layout->addWidget(performance_box);
|
2017-06-15 17:43:01 -06:00
|
|
|
main_layout->addWidget(debugging_box);
|
|
|
|
main_layout->addWidget(utility_box);
|
2020-05-04 22:07:06 -06:00
|
|
|
main_layout->addWidget(texture_dump_box);
|
2019-07-17 12:02:08 -06:00
|
|
|
main_layout->addWidget(dump_box);
|
2017-06-15 17:43:01 -06:00
|
|
|
main_layout->addWidget(misc_box);
|
2019-03-08 19:36:32 -07:00
|
|
|
main_layout->addWidget(experimental_box);
|
2017-09-14 10:48:20 -06:00
|
|
|
main_layout->addStretch();
|
2017-06-15 17:43:01 -06:00
|
|
|
|
|
|
|
setLayout(main_layout);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AdvancedWidget::ConnectWidgets()
|
|
|
|
{
|
|
|
|
connect(m_load_custom_textures, &QCheckBox::toggled, this, &AdvancedWidget::SaveSettings);
|
2019-07-17 12:15:25 -06:00
|
|
|
connect(m_dump_use_ffv1, &QCheckBox::toggled, this, &AdvancedWidget::SaveSettings);
|
2018-05-19 12:59:30 -06:00
|
|
|
connect(m_enable_prog_scan, &QCheckBox::toggled, this, &AdvancedWidget::SaveSettings);
|
2020-05-04 22:07:06 -06:00
|
|
|
connect(m_dump_textures, &QCheckBox::toggled, this, &AdvancedWidget::SaveSettings);
|
2022-03-30 23:44:32 -06:00
|
|
|
connect(m_enable_graphics_mods, &QCheckBox::toggled, this, &AdvancedWidget::SaveSettings);
|
2017-06-15 17:43:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void AdvancedWidget::LoadSettings()
|
|
|
|
{
|
|
|
|
m_prefetch_custom_textures->setEnabled(Config::Get(Config::GFX_HIRES_TEXTURES));
|
2019-07-17 12:15:25 -06:00
|
|
|
m_dump_bitrate->setEnabled(!Config::Get(Config::GFX_USE_FFV1));
|
|
|
|
|
2018-05-05 19:16:43 -06:00
|
|
|
m_enable_prog_scan->setChecked(Config::Get(Config::SYSCONF_PROGRESSIVE_SCAN));
|
2020-05-04 22:07:06 -06:00
|
|
|
m_dump_mip_textures->setEnabled(Config::Get(Config::GFX_DUMP_TEXTURES));
|
|
|
|
m_dump_base_textures->setEnabled(Config::Get(Config::GFX_DUMP_TEXTURES));
|
2022-03-30 23:44:32 -06:00
|
|
|
|
|
|
|
SignalBlocking(m_enable_graphics_mods)->setChecked(Settings::Instance().GetGraphicModsEnabled());
|
2017-06-15 17:43:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void AdvancedWidget::SaveSettings()
|
|
|
|
{
|
2019-07-17 12:15:25 -06:00
|
|
|
m_prefetch_custom_textures->setEnabled(Config::Get(Config::GFX_HIRES_TEXTURES));
|
|
|
|
m_dump_bitrate->setEnabled(!Config::Get(Config::GFX_USE_FFV1));
|
2018-05-05 19:16:43 -06:00
|
|
|
|
|
|
|
Config::SetBase(Config::SYSCONF_PROGRESSIVE_SCAN, m_enable_prog_scan->isChecked());
|
2020-05-04 22:07:06 -06:00
|
|
|
m_dump_mip_textures->setEnabled(Config::Get(Config::GFX_DUMP_TEXTURES));
|
|
|
|
m_dump_base_textures->setEnabled(Config::Get(Config::GFX_DUMP_TEXTURES));
|
2022-03-30 23:44:32 -06:00
|
|
|
Settings::Instance().SetGraphicModsEnabled(m_enable_graphics_mods->isChecked());
|
2017-06-15 17:43:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void AdvancedWidget::OnBackendChanged()
|
|
|
|
{
|
2022-09-26 20:25:11 -06:00
|
|
|
m_backend_multithreading->setEnabled(g_Config.backend_info.bSupportsMultithreading);
|
2022-07-24 02:51:22 -06:00
|
|
|
m_prefer_vs_for_point_line_expansion->setEnabled(
|
|
|
|
g_Config.backend_info.bSupportsGeometryShaders &&
|
|
|
|
g_Config.backend_info.bSupportsVSLinePointExpand);
|
2022-10-22 18:48:50 -06:00
|
|
|
AddDescriptions();
|
2017-06-15 17:43:01 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
void AdvancedWidget::OnEmulationStateChanged(bool running)
|
|
|
|
{
|
|
|
|
m_enable_prog_scan->setEnabled(!running);
|
|
|
|
}
|
|
|
|
|
|
|
|
void AdvancedWidget::AddDescriptions()
|
|
|
|
{
|
2022-10-26 13:17:15 -06:00
|
|
|
static const char TR_SHOW_FPS_DESCRIPTION[] =
|
|
|
|
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>");
|
2022-12-23 17:52:53 -07:00
|
|
|
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 "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
2022-10-26 13:17:15 -06:00
|
|
|
static const char TR_SHOW_VPS_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Shows the number of frames rendered per second as a measure of "
|
|
|
|
"emulation speed.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
2022-12-23 17:52:53 -07:00
|
|
|
static const char TR_SHOW_VTIMES_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Shows the average time in ms between each rendered frame alongside "
|
|
|
|
"the standard deviation.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
|
|
|
static const char TR_SHOW_GRAPHS_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Shows frametime graph along with statistics as a representation of "
|
|
|
|
"emulation performance.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
2022-10-26 13:17:15 -06:00
|
|
|
static const char TR_SHOW_SPEED_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Shows the % speed of emulation compared to full speed."
|
|
|
|
"<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
|
|
|
static const char TR_SHOW_SPEED_COLORS_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Changes the color of the FPS counter depending on emulation speed."
|
|
|
|
"<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"checked.</dolphin_emphasis>");
|
|
|
|
static const char TR_PERF_SAMP_WINDOW_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("The amount of time the FPS and VPS counters will sample over."
|
|
|
|
"<br><br>The higher the value, the more stable the FPS/VPS counter will be, "
|
2022-12-26 15:28:48 -07:00
|
|
|
"but the slower it will be to update."
|
2022-10-26 13:17:15 -06:00
|
|
|
"<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"at 1000ms.</dolphin_emphasis>");
|
|
|
|
static const char TR_LOG_RENDERTIME_DESCRIPTION[] = QT_TR_NOOP(
|
|
|
|
"Logs the render time of every frame to User/Logs/render_time.txt.<br><br>Use this "
|
|
|
|
"feature to measure Dolphin's performance.<br><br><dolphin_emphasis>If "
|
|
|
|
"unsure, leave this unchecked.</dolphin_emphasis>");
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_WIREFRAME_DESCRIPTION[] =
|
2020-10-20 19:01:33 -06:00
|
|
|
QT_TR_NOOP("Renders the scene as a wireframe.<br><br><dolphin_emphasis>If unsure, leave "
|
|
|
|
"this unchecked.</dolphin_emphasis>");
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_SHOW_STATS_DESCRIPTION[] =
|
2020-10-20 19:01:33 -06:00
|
|
|
QT_TR_NOOP("Shows various rendering statistics.<br><br><dolphin_emphasis>If unsure, "
|
|
|
|
"leave this unchecked.</dolphin_emphasis>");
|
|
|
|
static const char TR_TEXTURE_FORMAT_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Modifies textures to show the format they're encoded in.<br><br>May require "
|
2021-07-28 22:25:00 -06:00
|
|
|
"an emulation reset to apply.<br><br><dolphin_emphasis>If unsure, leave this "
|
2020-10-20 19:01:33 -06:00
|
|
|
"unchecked.</dolphin_emphasis>");
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_VALIDATION_LAYER_DESCRIPTION[] =
|
2017-06-15 17:43:01 -06:00
|
|
|
QT_TR_NOOP("Enables validation of API calls made by the video backend, which may assist in "
|
2021-08-04 19:45:38 -06:00
|
|
|
"debugging graphical issues. On the Vulkan and D3D backends, this also enables "
|
|
|
|
"debug symbols for the compiled shaders.<br><br><dolphin_emphasis>If unsure, "
|
|
|
|
"leave this unchecked.</dolphin_emphasis>");
|
2020-05-04 22:07:06 -06:00
|
|
|
static const char TR_DUMP_TEXTURE_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Dumps decoded game textures based on the other flags to "
|
2020-12-18 21:49:26 -07:00
|
|
|
"User/Dump/Textures/<game_id>/.<br><br><dolphin_emphasis>If unsure, leave "
|
2020-10-20 19:01:33 -06:00
|
|
|
"this unchecked.</dolphin_emphasis>");
|
2020-05-04 22:07:06 -06:00
|
|
|
static const char TR_DUMP_MIP_TEXTURE_DESCRIPTION[] = QT_TR_NOOP(
|
|
|
|
"Whether to dump mipmapped game textures to "
|
2020-12-18 21:49:26 -07:00
|
|
|
"User/Dump/Textures/<game_id>/. This includes arbitrary mipmapped textures if "
|
2021-07-28 22:25:00 -06:00
|
|
|
"'Arbitrary Mipmap Detection' is enabled in Enhancements.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
|
2020-05-04 22:07:06 -06:00
|
|
|
static const char TR_DUMP_BASE_TEXTURE_DESCRIPTION[] = QT_TR_NOOP(
|
|
|
|
"Whether to dump base game textures to "
|
2020-12-18 21:49:26 -07:00
|
|
|
"User/Dump/Textures/<game_id>/. This includes arbitrary base textures if 'Arbitrary "
|
2020-10-20 19:01:33 -06:00
|
|
|
"Mipmap Detection' is enabled in Enhancements.<br><br><dolphin_emphasis>If unsure, leave "
|
|
|
|
"this checked.</dolphin_emphasis>");
|
2019-08-17 13:40:58 -06:00
|
|
|
static const char TR_LOAD_CUSTOM_TEXTURE_DESCRIPTION[] =
|
2020-12-18 21:49:26 -07:00
|
|
|
QT_TR_NOOP("Loads custom textures from User/Load/Textures/<game_id>/ and "
|
|
|
|
"User/Load/DynamicInputTextures/<game_id>/.<br><br><dolphin_emphasis>If "
|
2021-07-28 22:25:00 -06:00
|
|
|
"unsure, leave this unchecked.</dolphin_emphasis>");
|
2019-06-08 12:34:58 -06:00
|
|
|
static const char TR_CACHE_CUSTOM_TEXTURE_DESCRIPTION[] = QT_TR_NOOP(
|
2020-10-20 19:01:33 -06:00
|
|
|
"Caches custom textures to system RAM on startup.<br><br>This can require exponentially "
|
|
|
|
"more RAM but fixes possible stuttering.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
|
|
|
static const char TR_DUMP_EFB_DESCRIPTION[] =
|
2021-07-28 22:25:00 -06:00
|
|
|
QT_TR_NOOP("Dumps the contents of EFB copies to User/Dump/Textures/.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
2021-05-26 18:32:02 -06:00
|
|
|
static const char TR_DUMP_XFB_DESCRIPTION[] =
|
2021-07-28 22:25:00 -06:00
|
|
|
QT_TR_NOOP("Dumps the contents of XFB copies to User/Dump/Textures/.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_DISABLE_VRAM_COPIES_DESCRIPTION[] =
|
2018-05-02 22:24:56 -06:00
|
|
|
QT_TR_NOOP("Disables the VRAM copy of the EFB, forcing a round-trip to RAM. Inhibits all "
|
2020-10-20 19:01:33 -06:00
|
|
|
"upscaling.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
2022-04-06 23:00:38 -06:00
|
|
|
static const char TR_LOAD_GRAPHICS_MODS_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Loads graphics mods from User/Load/GraphicsMods/.<br><br><dolphin_emphasis>If "
|
|
|
|
"unsure, leave this unchecked.</dolphin_emphasis>");
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_INTERNAL_RESOLUTION_FRAME_DUMPING_DESCRIPTION[] = QT_TR_NOOP(
|
2019-01-27 14:59:39 -07:00
|
|
|
"Creates frame dumps and screenshots at the internal resolution of the renderer, rather than "
|
2021-07-28 22:25:00 -06:00
|
|
|
"the size of the window it is displayed within.<br><br>If the aspect ratio is widescreen, "
|
|
|
|
"the output image will be scaled horizontally to preserve the vertical resolution.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
2017-06-15 17:43:01 -06:00
|
|
|
#if defined(HAVE_FFMPEG)
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_USE_FFV1_DESCRIPTION[] =
|
2020-10-20 19:01:33 -06:00
|
|
|
QT_TR_NOOP("Encodes frame dumps using the FFV1 codec.<br><br><dolphin_emphasis>If "
|
|
|
|
"unsure, leave this unchecked.</dolphin_emphasis>");
|
2017-06-15 17:43:01 -06:00
|
|
|
#endif
|
2021-10-01 18:56:46 -06:00
|
|
|
static const char TR_PNG_COMPRESSION_LEVEL_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Specifies the zlib compression level to use when saving PNG images (both for "
|
|
|
|
"screenshots and framedumping).<br><br>"
|
|
|
|
"Since PNG uses lossless compression, this does not affect the image quality; "
|
|
|
|
"instead, it is a trade-off between file size and compression time.<br><br>"
|
|
|
|
"A value of 0 uses no compression at all. A value of 1 uses very little "
|
|
|
|
"compression, while the maximum value of 9 applies a lot of compression. "
|
|
|
|
"However, for PNG files, levels between 3 and 6 are generally about as good as "
|
|
|
|
"level 9 but finish in significantly less time.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this at 6.</dolphin_emphasis>");
|
2020-10-20 19:01:33 -06:00
|
|
|
static const char TR_CROPPING_DESCRIPTION[] = QT_TR_NOOP(
|
|
|
|
"Crops the picture from its native aspect ratio to 4:3 or "
|
|
|
|
"16:9.<br><br><dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_PROGRESSIVE_SCAN_DESCRIPTION[] = QT_TR_NOOP(
|
2019-01-27 14:59:39 -07:00
|
|
|
"Enables progressive scan if supported by the emulated software. Most games don't have "
|
2020-10-20 19:01:33 -06:00
|
|
|
"any issue with this.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
2018-08-03 09:00:04 -06:00
|
|
|
static const char TR_BACKEND_MULTITHREADING_DESCRIPTION[] =
|
2019-06-08 12:34:58 -06:00
|
|
|
QT_TR_NOOP("Enables multithreaded command submission in backends where supported. Enabling "
|
2018-08-03 09:00:04 -06:00
|
|
|
"this option may result in a performance improvement on systems with more than "
|
2021-07-28 22:25:00 -06:00
|
|
|
"two CPU cores. Currently, this is limited to the Vulkan backend.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this checked.</dolphin_emphasis>");
|
2022-07-24 02:51:22 -06:00
|
|
|
static const char TR_PREFER_VS_FOR_POINT_LINE_EXPANSION_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("On backends that support both using the geometry shader and the vertex shader "
|
|
|
|
"for expanding points and lines, selects the vertex shader for the job. May "
|
|
|
|
"affect performance."
|
2022-10-22 18:48:50 -06:00
|
|
|
"<br><br>%1");
|
2022-12-11 23:36:13 -07:00
|
|
|
static const char TR_CPU_CULL_DESCRIPTION[] =
|
|
|
|
QT_TR_NOOP("Cull vertices on the CPU to reduce the number of draw calls required. "
|
|
|
|
"May affect performance and draw statistics.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
2019-06-08 12:34:58 -06:00
|
|
|
static const char TR_DEFER_EFB_ACCESS_INVALIDATION_DESCRIPTION[] = QT_TR_NOOP(
|
|
|
|
"Defers invalidation of the EFB access cache until a GPU synchronization command "
|
|
|
|
"is executed. If disabled, the cache will be invalidated with every draw call. "
|
2020-10-20 19:01:33 -06:00
|
|
|
"<br><br>May improve performance in some games which rely on CPU EFB Access at the cost "
|
|
|
|
"of stability.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
2021-10-15 12:57:53 -06:00
|
|
|
static const char TR_MANUAL_TEXTURE_SAMPLING_DESCRIPTION[] = QT_TR_NOOP(
|
|
|
|
"Use a manual implementation of texture sampling instead of the graphics backend's built-in "
|
|
|
|
"functionality.<br><br>"
|
|
|
|
"This setting can fix graphical issues in some games on certain GPUs, most commonly vertical "
|
|
|
|
"lines on FMVs. In addition to this, enabling Manual Texture Sampling will allow for correct "
|
|
|
|
"emulation of texture wrapping special cases (at 1x IR or when scaled EFB is disabled, and "
|
|
|
|
"with custom textures disabled) and better emulates Level of Detail calculation.<br><br>"
|
|
|
|
"This comes at the cost of potentially worse performance, especially at higher internal "
|
|
|
|
"resolutions; additionally, Anisotropic Filtering is currently incompatible with Manual "
|
|
|
|
"Texture Sampling.<br><br>"
|
|
|
|
"<dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
2019-03-08 19:36:32 -07:00
|
|
|
|
2017-06-15 17:43:01 -06:00
|
|
|
#ifdef _WIN32
|
2018-06-06 07:05:18 -06:00
|
|
|
static const char TR_BORDERLESS_FULLSCREEN_DESCRIPTION[] = QT_TR_NOOP(
|
2019-01-27 14:59:39 -07:00
|
|
|
"Implements fullscreen mode with a borderless window spanning the whole screen instead of "
|
|
|
|
"using exclusive mode. Allows for faster transitions between fullscreen and windowed mode, "
|
|
|
|
"but slightly increases input latency, makes movement less smooth and slightly decreases "
|
2020-10-20 19:01:33 -06:00
|
|
|
"performance.<br><br><dolphin_emphasis>If unsure, leave this "
|
|
|
|
"unchecked.</dolphin_emphasis>");
|
2017-06-15 17:43:01 -06:00
|
|
|
#endif
|
|
|
|
|
2022-10-22 18:48:50 -06:00
|
|
|
static const char IF_UNSURE_UNCHECKED[] =
|
|
|
|
QT_TR_NOOP("<dolphin_emphasis>If unsure, leave this unchecked.</dolphin_emphasis>");
|
|
|
|
|
2022-10-26 13:17:15 -06:00
|
|
|
m_show_fps->SetDescription(tr(TR_SHOW_FPS_DESCRIPTION));
|
2022-12-23 17:52:53 -07:00
|
|
|
m_show_ftimes->SetDescription(tr(TR_SHOW_FTIMES_DESCRIPTION));
|
2022-10-26 13:17:15 -06:00
|
|
|
m_show_vps->SetDescription(tr(TR_SHOW_VPS_DESCRIPTION));
|
2022-12-23 17:52:53 -07:00
|
|
|
m_show_vtimes->SetDescription(tr(TR_SHOW_VTIMES_DESCRIPTION));
|
|
|
|
m_show_graphs->SetDescription(tr(TR_SHOW_GRAPHS_DESCRIPTION));
|
2022-10-26 13:17:15 -06:00
|
|
|
m_show_speed->SetDescription(tr(TR_SHOW_SPEED_DESCRIPTION));
|
|
|
|
m_log_render_time->SetDescription(tr(TR_LOG_RENDERTIME_DESCRIPTION));
|
|
|
|
m_show_speed_colors->SetDescription(tr(TR_SHOW_SPEED_COLORS_DESCRIPTION));
|
|
|
|
|
2020-11-30 06:04:08 -07:00
|
|
|
m_enable_wireframe->SetDescription(tr(TR_WIREFRAME_DESCRIPTION));
|
|
|
|
m_show_statistics->SetDescription(tr(TR_SHOW_STATS_DESCRIPTION));
|
|
|
|
m_enable_format_overlay->SetDescription(tr(TR_TEXTURE_FORMAT_DESCRIPTION));
|
|
|
|
m_enable_api_validation->SetDescription(tr(TR_VALIDATION_LAYER_DESCRIPTION));
|
2022-10-26 13:17:15 -06:00
|
|
|
m_perf_samp_window->SetDescription(tr(TR_PERF_SAMP_WINDOW_DESCRIPTION));
|
2020-11-30 06:04:08 -07:00
|
|
|
m_dump_textures->SetDescription(tr(TR_DUMP_TEXTURE_DESCRIPTION));
|
|
|
|
m_dump_mip_textures->SetDescription(tr(TR_DUMP_MIP_TEXTURE_DESCRIPTION));
|
|
|
|
m_dump_base_textures->SetDescription(tr(TR_DUMP_BASE_TEXTURE_DESCRIPTION));
|
|
|
|
m_load_custom_textures->SetDescription(tr(TR_LOAD_CUSTOM_TEXTURE_DESCRIPTION));
|
|
|
|
m_prefetch_custom_textures->SetDescription(tr(TR_CACHE_CUSTOM_TEXTURE_DESCRIPTION));
|
|
|
|
m_dump_efb_target->SetDescription(tr(TR_DUMP_EFB_DESCRIPTION));
|
2021-05-26 18:32:02 -06:00
|
|
|
m_dump_xfb_target->SetDescription(tr(TR_DUMP_XFB_DESCRIPTION));
|
2020-11-30 06:04:08 -07:00
|
|
|
m_disable_vram_copies->SetDescription(tr(TR_DISABLE_VRAM_COPIES_DESCRIPTION));
|
2022-04-06 23:00:38 -06:00
|
|
|
m_enable_graphics_mods->SetDescription(tr(TR_LOAD_GRAPHICS_MODS_DESCRIPTION));
|
2020-11-30 06:04:08 -07:00
|
|
|
m_use_fullres_framedumps->SetDescription(tr(TR_INTERNAL_RESOLUTION_FRAME_DUMPING_DESCRIPTION));
|
2017-06-15 17:43:01 -06:00
|
|
|
#ifdef HAVE_FFMPEG
|
2020-11-30 06:04:08 -07:00
|
|
|
m_dump_use_ffv1->SetDescription(tr(TR_USE_FFV1_DESCRIPTION));
|
2017-06-15 17:43:01 -06:00
|
|
|
#endif
|
2021-10-01 18:56:46 -06:00
|
|
|
m_png_compression_level->SetDescription(tr(TR_PNG_COMPRESSION_LEVEL_DESCRIPTION));
|
2020-11-30 06:04:08 -07:00
|
|
|
m_enable_cropping->SetDescription(tr(TR_CROPPING_DESCRIPTION));
|
|
|
|
m_enable_prog_scan->SetDescription(tr(TR_PROGRESSIVE_SCAN_DESCRIPTION));
|
|
|
|
m_backend_multithreading->SetDescription(tr(TR_BACKEND_MULTITHREADING_DESCRIPTION));
|
2022-10-22 18:48:50 -06:00
|
|
|
QString vsexpand_extra;
|
|
|
|
if (!g_Config.backend_info.bSupportsGeometryShaders)
|
|
|
|
vsexpand_extra = tr("Forced on because %1 doesn't support geometry shaders.")
|
|
|
|
.arg(tr(g_Config.backend_info.DisplayName.c_str()));
|
|
|
|
else if (!g_Config.backend_info.bSupportsVSLinePointExpand)
|
|
|
|
vsexpand_extra = tr("Forced off because %1 doesn't support VS expansion.")
|
|
|
|
.arg(tr(g_Config.backend_info.DisplayName.c_str()));
|
|
|
|
else
|
|
|
|
vsexpand_extra = tr(IF_UNSURE_UNCHECKED);
|
2022-07-24 02:51:22 -06:00
|
|
|
m_prefer_vs_for_point_line_expansion->SetDescription(
|
2022-10-22 18:48:50 -06:00
|
|
|
tr(TR_PREFER_VS_FOR_POINT_LINE_EXPANSION_DESCRIPTION).arg(vsexpand_extra));
|
2022-12-11 23:36:13 -07:00
|
|
|
m_cpu_cull->SetDescription(tr(TR_CPU_CULL_DESCRIPTION));
|
2017-06-15 17:43:01 -06:00
|
|
|
#ifdef _WIN32
|
2020-11-30 06:04:08 -07:00
|
|
|
m_borderless_fullscreen->SetDescription(tr(TR_BORDERLESS_FULLSCREEN_DESCRIPTION));
|
2017-06-15 17:43:01 -06:00
|
|
|
#endif
|
2020-11-30 06:04:08 -07:00
|
|
|
m_defer_efb_access_invalidation->SetDescription(tr(TR_DEFER_EFB_ACCESS_INVALIDATION_DESCRIPTION));
|
2021-10-15 12:57:53 -06:00
|
|
|
m_manual_texture_sampling->SetDescription(tr(TR_MANUAL_TEXTURE_SAMPLING_DESCRIPTION));
|
2017-06-15 17:43:01 -06:00
|
|
|
}
|