diff options
| -rw-r--r-- | src/common/settings.cpp | 2 | ||||
| -rw-r--r-- | src/common/settings.h | 1 | ||||
| -rw-r--r-- | src/video_core/renderer_vulkan/vk_fsr.cpp | 6 | ||||
| -rw-r--r-- | src/yuzu/configuration/config.cpp | 5 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.cpp | 38 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.h | 2 | ||||
| -rw-r--r-- | src/yuzu/configuration/configure_graphics.ui | 146 | ||||
| -rw-r--r-- | src/yuzu_cmd/config.cpp | 1 |
8 files changed, 200 insertions, 1 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp index 8173462cb..d8ffe34c3 100644 --- a/src/common/settings.cpp +++ b/src/common/settings.cpp | |||
| @@ -48,6 +48,7 @@ void LogSettings() { | |||
| 48 | log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue()); | 48 | log_setting("CPU_Accuracy", values.cpu_accuracy.GetValue()); |
| 49 | log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue()); | 49 | log_setting("Renderer_UseResolutionScaling", values.resolution_setup.GetValue()); |
| 50 | log_setting("Renderer_ScalingFilter", values.scaling_filter.GetValue()); | 50 | log_setting("Renderer_ScalingFilter", values.scaling_filter.GetValue()); |
| 51 | log_setting("Renderer_FSRSlider", values.fsr_sharpening_slider.GetValue()); | ||
| 51 | log_setting("Renderer_AntiAliasing", values.anti_aliasing.GetValue()); | 52 | log_setting("Renderer_AntiAliasing", values.anti_aliasing.GetValue()); |
| 52 | log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); | 53 | log_setting("Renderer_UseSpeedLimit", values.use_speed_limit.GetValue()); |
| 53 | log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); | 54 | log_setting("Renderer_SpeedLimit", values.speed_limit.GetValue()); |
| @@ -181,6 +182,7 @@ void RestoreGlobalState(bool is_powered_on) { | |||
| 181 | values.cpuopt_unsafe_ignore_global_monitor.SetGlobal(true); | 182 | values.cpuopt_unsafe_ignore_global_monitor.SetGlobal(true); |
| 182 | 183 | ||
| 183 | // Renderer | 184 | // Renderer |
| 185 | values.fsr_sharpening_slider.SetGlobal(true); | ||
| 184 | values.renderer_backend.SetGlobal(true); | 186 | values.renderer_backend.SetGlobal(true); |
| 185 | values.vulkan_device.SetGlobal(true); | 187 | values.vulkan_device.SetGlobal(true); |
| 186 | values.aspect_ratio.SetGlobal(true); | 188 | values.aspect_ratio.SetGlobal(true); |
diff --git a/src/common/settings.h b/src/common/settings.h index cf1c00b75..00e4421f7 100644 --- a/src/common/settings.h +++ b/src/common/settings.h | |||
| @@ -421,6 +421,7 @@ struct Values { | |||
| 421 | ResolutionScalingInfo resolution_info{}; | 421 | ResolutionScalingInfo resolution_info{}; |
| 422 | SwitchableSetting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"}; | 422 | SwitchableSetting<ResolutionSetup> resolution_setup{ResolutionSetup::Res1X, "resolution_setup"}; |
| 423 | SwitchableSetting<ScalingFilter> scaling_filter{ScalingFilter::Bilinear, "scaling_filter"}; | 423 | SwitchableSetting<ScalingFilter> scaling_filter{ScalingFilter::Bilinear, "scaling_filter"}; |
| 424 | SwitchableSetting<int, true> fsr_sharpening_slider{25, 0, 200, "fsr_sharpening_slider"}; | ||
| 424 | SwitchableSetting<AntiAliasing> anti_aliasing{AntiAliasing::None, "anti_aliasing"}; | 425 | SwitchableSetting<AntiAliasing> anti_aliasing{AntiAliasing::None, "anti_aliasing"}; |
| 425 | // *nix platforms may have issues with the borderless windowed fullscreen mode. | 426 | // *nix platforms may have issues with the borderless windowed fullscreen mode. |
| 426 | // Default to exclusive fullscreen on these platforms for now. | 427 | // Default to exclusive fullscreen on these platforms for now. |
diff --git a/src/video_core/renderer_vulkan/vk_fsr.cpp b/src/video_core/renderer_vulkan/vk_fsr.cpp index dd450169e..33daa8c1c 100644 --- a/src/video_core/renderer_vulkan/vk_fsr.cpp +++ b/src/video_core/renderer_vulkan/vk_fsr.cpp | |||
| @@ -5,6 +5,7 @@ | |||
| 5 | #include "common/bit_cast.h" | 5 | #include "common/bit_cast.h" |
| 6 | #include "common/common_types.h" | 6 | #include "common/common_types.h" |
| 7 | #include "common/div_ceil.h" | 7 | #include "common/div_ceil.h" |
| 8 | #include "common/settings.h" | ||
| 8 | 9 | ||
| 9 | #include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp16_comp_spv.h" | 10 | #include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp16_comp_spv.h" |
| 10 | #include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp32_comp_spv.h" | 11 | #include "video_core/host_shaders/vulkan_fidelityfx_fsr_easu_fp32_comp_spv.h" |
| @@ -227,7 +228,10 @@ VkImageView FSR::Draw(Scheduler& scheduler, size_t image_index, VkImageView imag | |||
| 227 | 228 | ||
| 228 | cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_COMPUTE, *rcas_pipeline); | 229 | cmdbuf.BindPipeline(VK_PIPELINE_BIND_POINT_COMPUTE, *rcas_pipeline); |
| 229 | 230 | ||
| 230 | FsrRcasCon(push_constants.data(), 0.25f); | 231 | const float sharpening = |
| 232 | static_cast<float>(Settings::values.fsr_sharpening_slider.GetValue()) / 100.0f; | ||
| 233 | |||
| 234 | FsrRcasCon(push_constants.data(), sharpening); | ||
| 231 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_COMPUTE_BIT, push_constants); | 235 | cmdbuf.PushConstants(*pipeline_layout, VK_SHADER_STAGE_COMPUTE_BIT, push_constants); |
| 232 | 236 | ||
| 233 | { | 237 | { |
diff --git a/src/yuzu/configuration/config.cpp b/src/yuzu/configuration/config.cpp index 343f3b8e5..0c93df428 100644 --- a/src/yuzu/configuration/config.cpp +++ b/src/yuzu/configuration/config.cpp | |||
| @@ -672,6 +672,7 @@ void Config::ReadRendererValues() { | |||
| 672 | ReadGlobalSetting(Settings::values.aspect_ratio); | 672 | ReadGlobalSetting(Settings::values.aspect_ratio); |
| 673 | ReadGlobalSetting(Settings::values.resolution_setup); | 673 | ReadGlobalSetting(Settings::values.resolution_setup); |
| 674 | ReadGlobalSetting(Settings::values.scaling_filter); | 674 | ReadGlobalSetting(Settings::values.scaling_filter); |
| 675 | ReadGlobalSetting(Settings::values.fsr_sharpening_slider); | ||
| 675 | ReadGlobalSetting(Settings::values.anti_aliasing); | 676 | ReadGlobalSetting(Settings::values.anti_aliasing); |
| 676 | ReadGlobalSetting(Settings::values.max_anisotropy); | 677 | ReadGlobalSetting(Settings::values.max_anisotropy); |
| 677 | ReadGlobalSetting(Settings::values.use_speed_limit); | 678 | ReadGlobalSetting(Settings::values.use_speed_limit); |
| @@ -1282,6 +1283,10 @@ void Config::SaveRendererValues() { | |||
| 1282 | static_cast<u32>(Settings::values.scaling_filter.GetValue(global)), | 1283 | static_cast<u32>(Settings::values.scaling_filter.GetValue(global)), |
| 1283 | static_cast<u32>(Settings::values.scaling_filter.GetDefault()), | 1284 | static_cast<u32>(Settings::values.scaling_filter.GetDefault()), |
| 1284 | Settings::values.scaling_filter.UsingGlobal()); | 1285 | Settings::values.scaling_filter.UsingGlobal()); |
| 1286 | WriteSetting(QString::fromStdString(Settings::values.fsr_sharpening_slider.GetLabel()), | ||
| 1287 | static_cast<u32>(Settings::values.fsr_sharpening_slider.GetValue(global)), | ||
| 1288 | static_cast<u32>(Settings::values.fsr_sharpening_slider.GetDefault()), | ||
| 1289 | Settings::values.fsr_sharpening_slider.UsingGlobal()); | ||
| 1285 | WriteSetting(QString::fromStdString(Settings::values.anti_aliasing.GetLabel()), | 1290 | WriteSetting(QString::fromStdString(Settings::values.anti_aliasing.GetLabel()), |
| 1286 | static_cast<u32>(Settings::values.anti_aliasing.GetValue(global)), | 1291 | static_cast<u32>(Settings::values.anti_aliasing.GetValue(global)), |
| 1287 | static_cast<u32>(Settings::values.anti_aliasing.GetDefault()), | 1292 | static_cast<u32>(Settings::values.anti_aliasing.GetDefault()), |
diff --git a/src/yuzu/configuration/configure_graphics.cpp b/src/yuzu/configuration/configure_graphics.cpp index bd69d04a6..f1385e972 100644 --- a/src/yuzu/configuration/configure_graphics.cpp +++ b/src/yuzu/configuration/configure_graphics.cpp | |||
| @@ -63,6 +63,11 @@ ConfigureGraphics::ConfigureGraphics(const Core::System& system_, QWidget* paren | |||
| 63 | ui->api_widget->isEnabled()); | 63 | ui->api_widget->isEnabled()); |
| 64 | ui->bg_label->setVisible(Settings::IsConfiguringGlobal()); | 64 | ui->bg_label->setVisible(Settings::IsConfiguringGlobal()); |
| 65 | ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal()); | 65 | ui->bg_combobox->setVisible(!Settings::IsConfiguringGlobal()); |
| 66 | |||
| 67 | connect(ui->fsr_sharpening_slider, &QSlider::valueChanged, this, | ||
| 68 | &ConfigureGraphics::SetFSRIndicatorText); | ||
| 69 | ui->fsr_sharpening_combobox->setVisible(!Settings::IsConfiguringGlobal()); | ||
| 70 | ui->fsr_sharpening_label->setVisible(Settings::IsConfiguringGlobal()); | ||
| 66 | } | 71 | } |
| 67 | 72 | ||
| 68 | void ConfigureGraphics::UpdateDeviceSelection(int device) { | 73 | void ConfigureGraphics::UpdateDeviceSelection(int device) { |
| @@ -110,6 +115,7 @@ void ConfigureGraphics::SetConfiguration() { | |||
| 110 | static_cast<int>(Settings::values.resolution_setup.GetValue())); | 115 | static_cast<int>(Settings::values.resolution_setup.GetValue())); |
| 111 | ui->scaling_filter_combobox->setCurrentIndex( | 116 | ui->scaling_filter_combobox->setCurrentIndex( |
| 112 | static_cast<int>(Settings::values.scaling_filter.GetValue())); | 117 | static_cast<int>(Settings::values.scaling_filter.GetValue())); |
| 118 | ui->fsr_sharpening_slider->setValue(Settings::values.fsr_sharpening_slider.GetValue()); | ||
| 113 | ui->anti_aliasing_combobox->setCurrentIndex( | 119 | ui->anti_aliasing_combobox->setCurrentIndex( |
| 114 | static_cast<int>(Settings::values.anti_aliasing.GetValue())); | 120 | static_cast<int>(Settings::values.anti_aliasing.GetValue())); |
| 115 | } else { | 121 | } else { |
| @@ -147,6 +153,15 @@ void ConfigureGraphics::SetConfiguration() { | |||
| 147 | ConfigurationShared::SetHighlight(ui->anti_aliasing_label, | 153 | ConfigurationShared::SetHighlight(ui->anti_aliasing_label, |
| 148 | !Settings::values.anti_aliasing.UsingGlobal()); | 154 | !Settings::values.anti_aliasing.UsingGlobal()); |
| 149 | 155 | ||
| 156 | ui->fsr_sharpening_combobox->setCurrentIndex( | ||
| 157 | Settings::values.fsr_sharpening_slider.UsingGlobal() ? 0 : 1); | ||
| 158 | ui->fsr_sharpening_slider->setEnabled( | ||
| 159 | !Settings::values.fsr_sharpening_slider.UsingGlobal()); | ||
| 160 | ui->fsr_sharpening_value->setEnabled(!Settings::values.fsr_sharpening_slider.UsingGlobal()); | ||
| 161 | ConfigurationShared::SetHighlight(ui->fsr_sharpening_layout, | ||
| 162 | !Settings::values.fsr_sharpening_slider.UsingGlobal()); | ||
| 163 | ui->fsr_sharpening_slider->setValue(Settings::values.fsr_sharpening_slider.GetValue()); | ||
| 164 | |||
| 150 | ui->bg_combobox->setCurrentIndex(Settings::values.bg_red.UsingGlobal() ? 0 : 1); | 165 | ui->bg_combobox->setCurrentIndex(Settings::values.bg_red.UsingGlobal() ? 0 : 1); |
| 151 | ui->bg_button->setEnabled(!Settings::values.bg_red.UsingGlobal()); | 166 | ui->bg_button->setEnabled(!Settings::values.bg_red.UsingGlobal()); |
| 152 | ConfigurationShared::SetHighlight(ui->bg_layout, !Settings::values.bg_red.UsingGlobal()); | 167 | ConfigurationShared::SetHighlight(ui->bg_layout, !Settings::values.bg_red.UsingGlobal()); |
| @@ -155,6 +170,12 @@ void ConfigureGraphics::SetConfiguration() { | |||
| 155 | Settings::values.bg_green.GetValue(), | 170 | Settings::values.bg_green.GetValue(), |
| 156 | Settings::values.bg_blue.GetValue())); | 171 | Settings::values.bg_blue.GetValue())); |
| 157 | UpdateAPILayout(); | 172 | UpdateAPILayout(); |
| 173 | SetFSRIndicatorText(ui->fsr_sharpening_slider->sliderPosition()); | ||
| 174 | } | ||
| 175 | |||
| 176 | void ConfigureGraphics::SetFSRIndicatorText(int percentage) { | ||
| 177 | ui->fsr_sharpening_value->setText( | ||
| 178 | tr("%1%", "FSR sharpening percentage (e.g. 50%)").arg(100 - (percentage / 2))); | ||
| 158 | } | 179 | } |
| 159 | 180 | ||
| 160 | void ConfigureGraphics::ApplyConfiguration() { | 181 | void ConfigureGraphics::ApplyConfiguration() { |
| @@ -210,6 +231,7 @@ void ConfigureGraphics::ApplyConfiguration() { | |||
| 210 | if (Settings::values.anti_aliasing.UsingGlobal()) { | 231 | if (Settings::values.anti_aliasing.UsingGlobal()) { |
| 211 | Settings::values.anti_aliasing.SetValue(anti_aliasing); | 232 | Settings::values.anti_aliasing.SetValue(anti_aliasing); |
| 212 | } | 233 | } |
| 234 | Settings::values.fsr_sharpening_slider.SetValue(ui->fsr_sharpening_slider->value()); | ||
| 213 | } else { | 235 | } else { |
| 214 | if (ui->resolution_combobox->currentIndex() == ConfigurationShared::USE_GLOBAL_INDEX) { | 236 | if (ui->resolution_combobox->currentIndex() == ConfigurationShared::USE_GLOBAL_INDEX) { |
| 215 | Settings::values.resolution_setup.SetGlobal(true); | 237 | Settings::values.resolution_setup.SetGlobal(true); |
| @@ -269,6 +291,13 @@ void ConfigureGraphics::ApplyConfiguration() { | |||
| 269 | Settings::values.bg_green.SetValue(static_cast<u8>(bg_color.green())); | 291 | Settings::values.bg_green.SetValue(static_cast<u8>(bg_color.green())); |
| 270 | Settings::values.bg_blue.SetValue(static_cast<u8>(bg_color.blue())); | 292 | Settings::values.bg_blue.SetValue(static_cast<u8>(bg_color.blue())); |
| 271 | } | 293 | } |
| 294 | |||
| 295 | if (ui->fsr_sharpening_combobox->currentIndex() == ConfigurationShared::USE_GLOBAL_INDEX) { | ||
| 296 | Settings::values.fsr_sharpening_slider.SetGlobal(true); | ||
| 297 | } else { | ||
| 298 | Settings::values.fsr_sharpening_slider.SetGlobal(false); | ||
| 299 | Settings::values.fsr_sharpening_slider.SetValue(ui->fsr_sharpening_slider->value()); | ||
| 300 | } | ||
| 272 | } | 301 | } |
| 273 | } | 302 | } |
| 274 | 303 | ||
| @@ -380,6 +409,7 @@ void ConfigureGraphics::SetupPerGameUI() { | |||
| 380 | ui->aspect_ratio_combobox->setEnabled(Settings::values.aspect_ratio.UsingGlobal()); | 409 | ui->aspect_ratio_combobox->setEnabled(Settings::values.aspect_ratio.UsingGlobal()); |
| 381 | ui->resolution_combobox->setEnabled(Settings::values.resolution_setup.UsingGlobal()); | 410 | ui->resolution_combobox->setEnabled(Settings::values.resolution_setup.UsingGlobal()); |
| 382 | ui->scaling_filter_combobox->setEnabled(Settings::values.scaling_filter.UsingGlobal()); | 411 | ui->scaling_filter_combobox->setEnabled(Settings::values.scaling_filter.UsingGlobal()); |
| 412 | ui->fsr_sharpening_slider->setEnabled(Settings::values.fsr_sharpening_slider.UsingGlobal()); | ||
| 383 | ui->anti_aliasing_combobox->setEnabled(Settings::values.anti_aliasing.UsingGlobal()); | 413 | ui->anti_aliasing_combobox->setEnabled(Settings::values.anti_aliasing.UsingGlobal()); |
| 384 | ui->use_asynchronous_gpu_emulation->setEnabled( | 414 | ui->use_asynchronous_gpu_emulation->setEnabled( |
| 385 | Settings::values.use_asynchronous_gpu_emulation.UsingGlobal()); | 415 | Settings::values.use_asynchronous_gpu_emulation.UsingGlobal()); |
| @@ -387,6 +417,7 @@ void ConfigureGraphics::SetupPerGameUI() { | |||
| 387 | ui->accelerate_astc->setEnabled(Settings::values.accelerate_astc.UsingGlobal()); | 417 | ui->accelerate_astc->setEnabled(Settings::values.accelerate_astc.UsingGlobal()); |
| 388 | ui->use_disk_shader_cache->setEnabled(Settings::values.use_disk_shader_cache.UsingGlobal()); | 418 | ui->use_disk_shader_cache->setEnabled(Settings::values.use_disk_shader_cache.UsingGlobal()); |
| 389 | ui->bg_button->setEnabled(Settings::values.bg_red.UsingGlobal()); | 419 | ui->bg_button->setEnabled(Settings::values.bg_red.UsingGlobal()); |
| 420 | ui->fsr_slider_layout->setEnabled(Settings::values.fsr_sharpening_slider.UsingGlobal()); | ||
| 390 | 421 | ||
| 391 | return; | 422 | return; |
| 392 | } | 423 | } |
| @@ -396,6 +427,13 @@ void ConfigureGraphics::SetupPerGameUI() { | |||
| 396 | ConfigurationShared::SetHighlight(ui->bg_layout, index == 1); | 427 | ConfigurationShared::SetHighlight(ui->bg_layout, index == 1); |
| 397 | }); | 428 | }); |
| 398 | 429 | ||
| 430 | connect(ui->fsr_sharpening_combobox, qOverload<int>(&QComboBox::activated), this, | ||
| 431 | [this](int index) { | ||
| 432 | ui->fsr_sharpening_slider->setEnabled(index == 1); | ||
| 433 | ui->fsr_sharpening_value->setEnabled(index == 1); | ||
| 434 | ConfigurationShared::SetHighlight(ui->fsr_sharpening_layout, index == 1); | ||
| 435 | }); | ||
| 436 | |||
| 399 | ConfigurationShared::SetColoredTristate( | 437 | ConfigurationShared::SetColoredTristate( |
| 400 | ui->use_disk_shader_cache, Settings::values.use_disk_shader_cache, use_disk_shader_cache); | 438 | ui->use_disk_shader_cache, Settings::values.use_disk_shader_cache, use_disk_shader_cache); |
| 401 | ConfigurationShared::SetColoredTristate(ui->accelerate_astc, Settings::values.accelerate_astc, | 439 | ConfigurationShared::SetColoredTristate(ui->accelerate_astc, Settings::values.accelerate_astc, |
diff --git a/src/yuzu/configuration/configure_graphics.h b/src/yuzu/configuration/configure_graphics.h index 70034eb1b..d98d6624e 100644 --- a/src/yuzu/configuration/configure_graphics.h +++ b/src/yuzu/configuration/configure_graphics.h | |||
| @@ -42,6 +42,8 @@ private: | |||
| 42 | 42 | ||
| 43 | void RetrieveVulkanDevices(); | 43 | void RetrieveVulkanDevices(); |
| 44 | 44 | ||
| 45 | void SetFSRIndicatorText(int percentage); | ||
| 46 | |||
| 45 | void SetupPerGameUI(); | 47 | void SetupPerGameUI(); |
| 46 | 48 | ||
| 47 | Settings::RendererBackend GetCurrentGraphicsBackend() const; | 49 | Settings::RendererBackend GetCurrentGraphicsBackend() const; |
diff --git a/src/yuzu/configuration/configure_graphics.ui b/src/yuzu/configuration/configure_graphics.ui index fdbb33372..37271f956 100644 --- a/src/yuzu/configuration/configure_graphics.ui +++ b/src/yuzu/configuration/configure_graphics.ui | |||
| @@ -152,6 +152,12 @@ | |||
| 152 | </item> | 152 | </item> |
| 153 | <item> | 153 | <item> |
| 154 | <widget class="QGroupBox" name="groupBox"> | 154 | <widget class="QGroupBox" name="groupBox"> |
| 155 | <property name="maximumSize"> | ||
| 156 | <size> | ||
| 157 | <width>16777215</width> | ||
| 158 | <height>16777215</height> | ||
| 159 | </size> | ||
| 160 | </property> | ||
| 155 | <property name="title"> | 161 | <property name="title"> |
| 156 | <string>Graphics Settings</string> | 162 | <string>Graphics Settings</string> |
| 157 | </property> | 163 | </property> |
| @@ -482,6 +488,146 @@ | |||
| 482 | </widget> | 488 | </widget> |
| 483 | </item> | 489 | </item> |
| 484 | <item> | 490 | <item> |
| 491 | <widget class="QWidget" name="fsr_sharpening_layout" native="true"> | ||
| 492 | <property name="enabled"> | ||
| 493 | <bool>true</bool> | ||
| 494 | </property> | ||
| 495 | <property name="sizePolicy"> | ||
| 496 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||
| 497 | <horstretch>0</horstretch> | ||
| 498 | <verstretch>0</verstretch> | ||
| 499 | </sizepolicy> | ||
| 500 | </property> | ||
| 501 | <layout class="QHBoxLayout" name="horizontalLayout"> | ||
| 502 | <property name="spacing"> | ||
| 503 | <number>6</number> | ||
| 504 | </property> | ||
| 505 | <property name="sizeConstraint"> | ||
| 506 | <enum>QLayout::SetDefaultConstraint</enum> | ||
| 507 | </property> | ||
| 508 | <property name="leftMargin"> | ||
| 509 | <number>0</number> | ||
| 510 | </property> | ||
| 511 | <property name="topMargin"> | ||
| 512 | <number>0</number> | ||
| 513 | </property> | ||
| 514 | <property name="rightMargin"> | ||
| 515 | <number>0</number> | ||
| 516 | </property> | ||
| 517 | <property name="bottomMargin"> | ||
| 518 | <number>0</number> | ||
| 519 | </property> | ||
| 520 | <item> | ||
| 521 | <layout class="QHBoxLayout" name="fsr_sharpening_label_group"> | ||
| 522 | <item> | ||
| 523 | <widget class="QComboBox" name="fsr_sharpening_combobox"> | ||
| 524 | <property name="sizePolicy"> | ||
| 525 | <sizepolicy hsizetype="Maximum" vsizetype="Fixed"> | ||
| 526 | <horstretch>0</horstretch> | ||
| 527 | <verstretch>0</verstretch> | ||
| 528 | </sizepolicy> | ||
| 529 | </property> | ||
| 530 | <item> | ||
| 531 | <property name="text"> | ||
| 532 | <string>Use global FSR Sharpness</string> | ||
| 533 | </property> | ||
| 534 | </item> | ||
| 535 | <item> | ||
| 536 | <property name="text"> | ||
| 537 | <string>Set FSR Sharpness</string> | ||
| 538 | </property> | ||
| 539 | </item> | ||
| 540 | </widget> | ||
| 541 | </item> | ||
| 542 | <item> | ||
| 543 | <widget class="QLabel" name="fsr_sharpening_label"> | ||
| 544 | <property name="sizePolicy"> | ||
| 545 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | ||
| 546 | <horstretch>0</horstretch> | ||
| 547 | <verstretch>0</verstretch> | ||
| 548 | </sizepolicy> | ||
| 549 | </property> | ||
| 550 | <property name="text"> | ||
| 551 | <string>FSR Sharpness:</string> | ||
| 552 | </property> | ||
| 553 | </widget> | ||
| 554 | </item> | ||
| 555 | <item> | ||
| 556 | <spacer name="horizontalSpacer_2"> | ||
| 557 | <property name="orientation"> | ||
| 558 | <enum>Qt::Horizontal</enum> | ||
| 559 | </property> | ||
| 560 | <property name="sizeHint" stdset="0"> | ||
| 561 | <size> | ||
| 562 | <width>40</width> | ||
| 563 | <height>20</height> | ||
| 564 | </size> | ||
| 565 | </property> | ||
| 566 | </spacer> | ||
| 567 | </item> | ||
| 568 | </layout> | ||
| 569 | </item> | ||
| 570 | <item> | ||
| 571 | <layout class="QHBoxLayout" name="fsr_slider_layout"> | ||
| 572 | <property name="spacing"> | ||
| 573 | <number>6</number> | ||
| 574 | </property> | ||
| 575 | <item> | ||
| 576 | <widget class="QSlider" name="fsr_sharpening_slider"> | ||
| 577 | <property name="sizePolicy"> | ||
| 578 | <sizepolicy hsizetype="MinimumExpanding" vsizetype="Preferred"> | ||
| 579 | <horstretch>0</horstretch> | ||
| 580 | <verstretch>0</verstretch> | ||
| 581 | </sizepolicy> | ||
| 582 | </property> | ||
| 583 | <property name="baseSize"> | ||
| 584 | <size> | ||
| 585 | <width>0</width> | ||
| 586 | <height>0</height> | ||
| 587 | </size> | ||
| 588 | </property> | ||
| 589 | <property name="maximum"> | ||
| 590 | <number>200</number> | ||
| 591 | </property> | ||
| 592 | <property name="sliderPosition"> | ||
| 593 | <number>25</number> | ||
| 594 | </property> | ||
| 595 | <property name="orientation"> | ||
| 596 | <enum>Qt::Horizontal</enum> | ||
| 597 | </property> | ||
| 598 | <property name="invertedAppearance"> | ||
| 599 | <bool>true</bool> | ||
| 600 | </property> | ||
| 601 | </widget> | ||
| 602 | </item> | ||
| 603 | <item> | ||
| 604 | <widget class="QLabel" name="fsr_sharpening_value"> | ||
| 605 | <property name="sizePolicy"> | ||
| 606 | <sizepolicy hsizetype="Maximum" vsizetype="Preferred"> | ||
| 607 | <horstretch>0</horstretch> | ||
| 608 | <verstretch>0</verstretch> | ||
| 609 | </sizepolicy> | ||
| 610 | </property> | ||
| 611 | <property name="minimumSize"> | ||
| 612 | <size> | ||
| 613 | <width>32</width> | ||
| 614 | <height>0</height> | ||
| 615 | </size> | ||
| 616 | </property> | ||
| 617 | <property name="text"> | ||
| 618 | <string>100%</string> | ||
| 619 | </property> | ||
| 620 | <property name="alignment"> | ||
| 621 | <set>Qt::AlignCenter</set> | ||
| 622 | </property> | ||
| 623 | </widget> | ||
| 624 | </item> | ||
| 625 | </layout> | ||
| 626 | </item> | ||
| 627 | </layout> | ||
| 628 | </widget> | ||
| 629 | </item> | ||
| 630 | <item> | ||
| 485 | <widget class="QWidget" name="bg_layout" native="true"> | 631 | <widget class="QWidget" name="bg_layout" native="true"> |
| 486 | <property name="sizePolicy"> | 632 | <property name="sizePolicy"> |
| 487 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> | 633 | <sizepolicy hsizetype="Preferred" vsizetype="Preferred"> |
diff --git a/src/yuzu_cmd/config.cpp b/src/yuzu_cmd/config.cpp index 66dd0dc15..d6bea9aa8 100644 --- a/src/yuzu_cmd/config.cpp +++ b/src/yuzu_cmd/config.cpp | |||
| @@ -299,6 +299,7 @@ void Config::ReadValues() { | |||
| 299 | 299 | ||
| 300 | ReadSetting("Renderer", Settings::values.resolution_setup); | 300 | ReadSetting("Renderer", Settings::values.resolution_setup); |
| 301 | ReadSetting("Renderer", Settings::values.scaling_filter); | 301 | ReadSetting("Renderer", Settings::values.scaling_filter); |
| 302 | ReadSetting("Renderer", Settings::values.fsr_sharpening_slider); | ||
| 302 | ReadSetting("Renderer", Settings::values.anti_aliasing); | 303 | ReadSetting("Renderer", Settings::values.anti_aliasing); |
| 303 | ReadSetting("Renderer", Settings::values.fullscreen_mode); | 304 | ReadSetting("Renderer", Settings::values.fullscreen_mode); |
| 304 | ReadSetting("Renderer", Settings::values.aspect_ratio); | 305 | ReadSetting("Renderer", Settings::values.aspect_ratio); |