mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-28 17:16:46 +00:00
fix for auto mv setting logic
This commit is contained in:
@@ -280,8 +280,8 @@ bool FSR2FeatureDx11::Evaluate(ID3D11DeviceContext* InContext, const NVSDK_NGX_P
|
||||
{
|
||||
D3D11_TEXTURE2D_DESC desc;
|
||||
((ID3D11Texture2D*)paramVelocity)->GetDesc(&desc);
|
||||
bool lowResMV = desc.Width == params.renderSize.width;
|
||||
|
||||
bool lowResMV = desc.Width < DisplayWidth();
|
||||
|
||||
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
|
||||
{
|
||||
spdlog::warn("FSR2FeatureDx11::Evaluate MotionVectors size and feature init config not matching!!");
|
||||
|
||||
@@ -133,7 +133,7 @@ bool FSR2FeatureDx11on12::Evaluate(ID3D11DeviceContext* InDeviceContext, const N
|
||||
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
|
||||
{
|
||||
auto desc = dx11Mv.Dx12Resource->GetDesc();
|
||||
bool lowResMV = desc.Width == params.renderSize.width;
|
||||
bool lowResMV = desc.Width < DisplayWidth();
|
||||
|
||||
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
|
||||
{
|
||||
|
||||
@@ -107,7 +107,7 @@ bool FSR2FeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N
|
||||
if (!Config::Instance()->DisplayResolution.has_value())
|
||||
{
|
||||
auto desc = paramVelocity->GetDesc();
|
||||
bool lowResMV = desc.Width == params.renderSize.width;
|
||||
bool lowResMV = desc.Width < DisplayWidth();
|
||||
|
||||
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
|
||||
{
|
||||
|
||||
@@ -131,7 +131,7 @@ bool FSR2FeatureDx11on12_212::Evaluate(ID3D11DeviceContext* InDeviceContext, con
|
||||
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
|
||||
{
|
||||
auto desc = dx11Mv.Dx12Resource->GetDesc();
|
||||
bool lowResMV = desc.Width == params.renderSize.width;
|
||||
bool lowResMV = desc.Width < DisplayWidth();
|
||||
|
||||
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
|
||||
{
|
||||
|
||||
@@ -101,7 +101,7 @@ bool FSR2FeatureDx12_212::Evaluate(ID3D12GraphicsCommandList* InCommandList, con
|
||||
if (!Config::Instance()->DisplayResolution.has_value())
|
||||
{
|
||||
auto desc = paramVelocity->GetDesc();
|
||||
bool lowResMV = desc.Width == params.renderSize.width;
|
||||
bool lowResMV = desc.Width < DisplayWidth();
|
||||
|
||||
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
|
||||
{
|
||||
|
||||
@@ -198,7 +198,7 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, const NVSDK
|
||||
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
|
||||
{
|
||||
auto desc = dx11Mv.Dx12Resource->GetDesc();
|
||||
bool lowResMV = desc.Width == params.inputWidth;
|
||||
bool lowResMV = desc.Width < DisplayWidth();
|
||||
|
||||
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
|
||||
{
|
||||
|
||||
@@ -146,7 +146,7 @@ bool XeSSFeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N
|
||||
if (_hasMV && !Config::Instance()->DisplayResolution.has_value())
|
||||
{
|
||||
auto desc = params.pVelocityTexture->GetDesc();
|
||||
bool lowResMV = desc.Width == params.inputWidth;
|
||||
bool lowResMV = desc.Width < DisplayWidth();
|
||||
|
||||
if (Config::Instance()->DisplayResolution.value_or(false) && lowResMV)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user