1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-26 04:32:35 +01:00

GUI: Add PPU threads to debug tab

This commit is contained in:
Eladash 2020-10-02 18:50:20 +03:00 committed by Ivan
parent bbaa93c846
commit 40493c564f
4 changed files with 18 additions and 0 deletions

View File

@ -29,6 +29,7 @@ enum class emu_settings_type
AccurateRSXAccess,
AccurateXFloat,
AccuratePPU128Loop,
NumPPUThreads,
SetDAZandFTZ,
SPUBlockSize,
SPUCache,
@ -193,6 +194,7 @@ inline static const QMap<emu_settings_type, cfg_location> settings_location =
{ emu_settings_type::AccuratePPU128Loop, { "Core", "Accurate PPU 128-byte Reservation Op Max Length"}},
{ emu_settings_type::PerformanceReport, { "Core", "Enable Performance Report"}},
{ emu_settings_type::FullWidthAVX512, { "Core", "Full Width AVX-512"}},
{ emu_settings_type::NumPPUThreads, { "Core", "PPU Threads"}},
// Graphics Tab
{ emu_settings_type::Renderer, { "Video", "Renderer"}},

View File

@ -1818,6 +1818,9 @@ settings_dialog::settings_dialog(std::shared_ptr<gui_settings> gui_settings, std
ui->combo_accurate_ppu_128->setItemText(ui->combo_accurate_ppu_128->findData(-1), tr("Always Enabled", "Accurate PPU 128 Reservations"));
ui->combo_accurate_ppu_128->setItemText(ui->combo_accurate_ppu_128->findData(0), tr("Disabled", "Accurate PPU 128 Reservations"));
m_emu_settings->EnhanceComboBox(ui->combo_num_ppu_threads, emu_settings_type::NumPPUThreads, true);
SubscribeTooltip(ui->gb_num_ppu_threads, tooltips.settings.num_ppu_threads);
// Layout fix for High Dpi
layout()->setSizeConstraint(QLayout::SetFixedSize);
}

View File

@ -3684,6 +3684,18 @@
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="gb_num_ppu_threads">
<property name="title">
<string>PPU Thread Count</string>
</property>
<layout class="QVBoxLayout" name="vbl_num_ppu_threads">
<item>
<widget class="QComboBox" name="combo_num_ppu_threads"/>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacerDebugMore">
<property name="orientation">

View File

@ -101,6 +101,7 @@ public:
const QString enable_3d = tr("Enables 3D stereo rendering.\nNote that only anaglyph viewing is supported at the moment.");
const QString accurate_ppu_128_loop = tr("When enabled, PPU atomic operations will operate on entire cache line data, as opposed to a single 64bit block of memory when disabled.\nNumerical values control whether or not to enable the accurate version based on the atomic operation's length.");
const QString enable_performance_report = tr("Measure certain events and print a chart after the emulator is stopped. Don't enable if not asked to.");
const QString num_ppu_threads = tr("Affects maximum amount of PPU threads running concurrently, the value of 1 has very low compatibility with games.\n2 is the default, if unsure do not modify this setting.");
// emulator