From 202f5b4b0b2ac686992928e92df2bd44f522dad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Lewandowski?= <49685661+FakeMichau@users.noreply.github.com> Date: Mon, 30 Jun 2025 01:55:21 +0200 Subject: [PATCH] Always prefer model 1 for FSR 4 Quality (#563) --- OptiScaler/FSR4Upgrade.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/OptiScaler/FSR4Upgrade.h b/OptiScaler/FSR4Upgrade.h index 53c78878..56ade30a 100644 --- a/OptiScaler/FSR4Upgrade.h +++ b/OptiScaler/FSR4Upgrade.h @@ -152,6 +152,18 @@ uint64_t hkgetModelBlob(uint32_t preset, uint64_t unknown, uint64_t* source, uin { LOG_FUNC(); + // Fixup for Quality preset sometimes using model 0, sometimes using model 1 + if (State::Instance().currentFeature) + { + auto target = State::Instance().currentFeature->TargetWidth(); + auto render = State::Instance().currentFeature->RenderWidth(); + + auto ratio = (float) target / (float) render; + + if (preset == 0 && ratio >= 1.49f) + preset = 1; + } + if (Config::Instance()->Fsr4Model.has_value()) { preset = Config::Instance()->Fsr4Model.value();