summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2018-11-30 21:55:30 +1000
committerGitHub <noreply@github.com>2018-11-30 21:55:30 +1000
commit6388992f62098c5d0c6af5bf2f091330ed29de94 (patch)
tree468b74064cfd5672a90983d58da87243dff82ce4 /Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp
parentd9cacf6f5a5c1b5b97e6b29f665ee15fdf38fc50 (diff)
parent0c0d66809d9c029c0468982725ab63be48500081 (diff)
Merge pull request #7039 from stenzek/moltenvk
Vulkan: macOS support via MoltenVK
Diffstat (limited to 'Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp')
-rw-r--r--Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp b/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp
index 314e513213..1678a3f7bc 100644
--- a/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp
+++ b/Source/Core/DolphinQt/Config/Graphics/AdvancedWidget.cpp
@@ -92,15 +92,17 @@ void AdvancedWidget::CreateWidgets()
m_enable_cropping = new GraphicsBool(tr("Crop"), Config::GFX_CROP);
m_enable_prog_scan = new QCheckBox(tr("Enable Progressive Scan"));
+ m_backend_multithreading =
+ new GraphicsBool(tr("Backend Multi-threading"), Config::GFX_BACKEND_MULTITHREADING);
misc_layout->addWidget(m_enable_cropping, 0, 0);
misc_layout->addWidget(m_enable_prog_scan, 0, 1);
-
+ misc_layout->addWidget(m_backend_multithreading, 1, 0);
#ifdef _WIN32
m_borderless_fullscreen =
new GraphicsBool(tr("Borderless Fullscreen"), Config::GFX_BORDERLESS_FULLSCREEN);
- misc_layout->addWidget(m_borderless_fullscreen, 1, 0);
+ misc_layout->addWidget(m_borderless_fullscreen, 1, 1);
#endif
main_layout->addWidget(debugging_box);
@@ -191,6 +193,11 @@ void AdvancedWidget::AddDescriptions()
static const char TR_PROGRESSIVE_SCAN_DESCRIPTION[] = QT_TR_NOOP(
"Enables progressive scan if supported by the emulated software.\nMost games don't "
"care about this.\n\nIf unsure, leave this unchecked.");
+ static const char TR_BACKEND_MULTITHREADING_DESCRIPTION[] =
+ QT_TR_NOOP("Enables multi-threaded command submission in backends where supported. Enabling "
+ "this option may result in a performance improvement on systems with more than "
+ "two CPU cores. Currently, this is limited to the Vulkan backend.\n\nIf unsure, "
+ "leave this checked.");
#ifdef _WIN32
static const char TR_BORDERLESS_FULLSCREEN_DESCRIPTION[] = QT_TR_NOOP(
"Implement fullscreen mode with a borderless window spanning the whole screen instead of "
@@ -217,6 +224,7 @@ void AdvancedWidget::AddDescriptions()
AddDescription(m_enable_cropping, TR_CROPPING_DESCRIPTION);
AddDescription(m_enable_prog_scan, TR_PROGRESSIVE_SCAN_DESCRIPTION);
AddDescription(m_enable_freelook, TR_FREE_LOOK_DESCRIPTION);
+ AddDescription(m_backend_multithreading, TR_BACKEND_MULTITHREADING_DESCRIPTION);
#ifdef _WIN32
AddDescription(m_borderless_fullscreen, TR_BORDERLESS_FULLSCREEN_DESCRIPTION);
#endif