Skip to content

Commit

Permalink
don't use subrects for create feature
Browse files Browse the repository at this point in the history
  • Loading branch information
cdozdil committed Jun 10, 2024
1 parent 6e736e3 commit ce71028
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions OptiScaler/backends/IFeature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,10 @@ bool IFeature::SetInitParameters(const NVSDK_NGX_Parameter* InParameters)

_displayWidth = width > outWidth ? width : outWidth;
_displayHeight = height > outHeight ? height : outHeight;
_renderWidth = width < outWidth ? width : outWidth;
_renderHeight = height < outHeight ? height : outHeight;
_targetWidth = _displayWidth;
_targetHeight = _displayHeight;

if (InParameters->Get(NVSDK_NGX_Parameter_DLSS_Render_Subrect_Dimensions_Width, &_renderWidth) != NVSDK_NGX_Result_Success ||
InParameters->Get(NVSDK_NGX_Parameter_DLSS_Render_Subrect_Dimensions_Height, &_renderHeight) != NVSDK_NGX_Result_Success)
{
_renderWidth = width < outWidth ? width : outWidth;
_renderHeight = height < outHeight ? height : outHeight;
}

_perfQualityValue = (NVSDK_NGX_PerfQuality_Value)pqValue;

spdlog::info("IFeatureContext::SetInitParameters Render Resolution: {0}x{1}, Display Resolution {2}x{3}, Quality: {4}",
Expand Down

0 comments on commit ce71028

Please sign in to comment.