From 87e3602f4118a3d01427e4cbc8fd872195d83fd9 Mon Sep 17 00:00:00 2001 From: Skyth <19259897+blueskythlikesclouds@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:27:24 +0300 Subject: [PATCH] Update DoF quality thresholds. --- UnleashedRecomp/gpu/video.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/UnleashedRecomp/gpu/video.cpp b/UnleashedRecomp/gpu/video.cpp index 921ec41..dafaac1 100644 --- a/UnleashedRecomp/gpu/video.cpp +++ b/UnleashedRecomp/gpu/video.cpp @@ -3987,12 +3987,11 @@ static void ProcSetPixelShader(const RenderCommand& cmd) { size_t height = round(g_swapChain->getHeight() * Config::ResolutionScale); - // Use the middle point between resolutions to have the transition less noticable. - if (height >= ((2160 + 1440) / 2)) + if (height > 1440) shaderIndex = GAUSSIAN_BLUR_9X9; - else if (height >= ((1440 + 1080) / 2)) + else if (height > 1080) shaderIndex = GAUSSIAN_BLUR_7X7; - else if (height >= ((1080 + 720) / 2)) + else if (height > 720) shaderIndex = GAUSSIAN_BLUR_5X5; else shaderIndex = GAUSSIAN_BLUR_3X3;