mirror of
https://github.com/optiscaler/OptiScaler.git
synced 2026-08-25 07:36:45 +00:00
ue5 fix2
This commit is contained in:
@@ -123,12 +123,12 @@ bool XeSSFeatureDx11::Evaluate(ID3D11DeviceContext* InDeviceContext, const NVSDK
|
||||
|
||||
GetRenderResolution(InParameters, ¶ms.inputWidth, ¶ms.inputHeight);
|
||||
|
||||
// UE5 weird color fix2
|
||||
//if (false && Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5)
|
||||
//{
|
||||
// params.inputWidth -= (params.inputWidth % 2);
|
||||
// params.inputHeight -= (params.inputHeight % 2);
|
||||
//}
|
||||
// UE5 weird color fix2
|
||||
if (Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5)
|
||||
{
|
||||
params.inputWidth -= (params.inputWidth % 2);
|
||||
params.inputHeight -= (params.inputHeight % 2);
|
||||
}
|
||||
|
||||
auto sharpness = GetSharpness(InParameters);
|
||||
|
||||
|
||||
@@ -79,12 +79,12 @@ bool XeSSFeatureDx12::Evaluate(ID3D12GraphicsCommandList* InCommandList, const N
|
||||
|
||||
GetRenderResolution(InParameters, ¶ms.inputWidth, ¶ms.inputHeight);
|
||||
|
||||
// UE5 weird color fix2 - not helped :/
|
||||
//if (Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5)
|
||||
//{
|
||||
// params.inputWidth += (params.inputWidth % 2);
|
||||
// params.inputHeight += (params.inputHeight % 2);
|
||||
//}
|
||||
// UE5 weird color fix2
|
||||
if (Config::Instance()->NVNGX_Engine == NVSDK_NGX_ENGINE_TYPE_UNREAL && Config::Instance()->NVNGX_EngineVersion5)
|
||||
{
|
||||
params.inputWidth -= (params.inputWidth % 2);
|
||||
params.inputHeight -= (params.inputHeight % 2);
|
||||
}
|
||||
|
||||
auto sharpness = GetSharpness(InParameters);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user