From 56068f77d8bb9244bc24618c27f64c090960a1d2 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Sat, 7 Dec 2024 23:51:58 +0300 Subject: [PATCH] Change auto resolutions, remove from options menu. --- UnleashedRecomp/gpu/video.cpp | 7 ++++--- UnleashedRecomp/ui/options_menu.cpp | 1 - 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 73bd0b7b..5f427fc2 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -3900,11 +3900,12 @@ static void ProcSetPixelShader(const RenderCommand& cmd) { size_t height = round(g_swapChain->getHeight() * Config::ResolutionScale); - if (height >= 2160) + // Use the middle point between resolutions to have the transition less noticable. + if (height >= ((2160 + 1440) / 2)) shaderIndex = GAUSSIAN_BLUR_9X9; - else if (height >= 1440) + else if (height >= ((1440 + 1080) / 2)) shaderIndex = GAUSSIAN_BLUR_7X7; - else if (height >= 1080) + else if (height >= ((1080 + 720) / 2)) shaderIndex = GAUSSIAN_BLUR_5X5; else shaderIndex = GAUSSIAN_BLUR_3X3; diff --git a/UnleashedRecomp/ui/options_menu.cpp b/UnleashedRecomp/ui/options_menu.cpp index 4dd1ecf2..86c43291 100644 --- a/UnleashedRecomp/ui/options_menu.cpp +++ b/UnleashedRecomp/ui/options_menu.cpp @@ -813,7 +813,6 @@ static void DrawConfigOptions() DrawConfigOption(rowCount++, yOffset, &Config::TransparencyAntiAliasing, Config::AntiAliasing != EAntiAliasing::None, &Localise("Options_Desc_NotAvailableMSAA")); DrawConfigOption(rowCount++, yOffset, &Config::ShadowResolution, true); DrawConfigOption(rowCount++, yOffset, &Config::GITextureFiltering, true); - DrawConfigOption(rowCount++, yOffset, &Config::DepthOfFieldQuality, true); DrawConfigOption(rowCount++, yOffset, &Config::MotionBlur, true); DrawConfigOption(rowCount++, yOffset, &Config::XboxColourCorrection, true); DrawConfigOption(rowCount++, yOffset, &Config::MovieScaleMode, true);