File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ constexpr bool CAMERA_RELATIVE = true;
3434constexpr bool ALLOW_BLAS_MERGING = true ;
3535constexpr bool ALLOW_HDR = NRIF_PLATFORM == NRIF_WINDOWS && NRD_MODE < OCCLUSION; // use "WIN + ALT + B" to switch HDR mode
3636constexpr bool USE_LOW_PRECISION_FP_FORMATS = true ; // saves a bit of memory and performance
37- constexpr bool USE_DLSS_TNN = false ; // replace CNN (legacy) with TNN (better)
37+ constexpr bool DLSS_PRESET = 0 ;
3838constexpr nri::UpscalerType upscalerType = nri::UpscalerType::DLSR;
3939constexpr int32_t MAX_HISTORY_FRAME_NUM = (int32_t )std::min(60u , std::min(nrd::REBLUR_MAX_HISTORY_FRAME_NUM, nrd::RELAX_MAX_HISTORY_FRAME_NUM));
4040constexpr uint32_t TEXTURES_PER_MATERIAL = 4 ;
@@ -896,7 +896,7 @@ bool Sample::Initialize(nri::GraphicsAPI graphicsAPI, bool) {
896896 upscalerDesc.type = upscalerType;
897897 upscalerDesc.mode = mode;
898898 upscalerDesc.flags = upscalerFlags;
899- upscalerDesc.preset = USE_DLSS_TNN ? 10 : 0 ;
899+ upscalerDesc.preset = DLSS_PRESET ;
900900 NRI_ABORT_ON_FAILURE (NRI.CreateUpscaler (*m_Device, upscalerDesc, m_DLSR));
901901
902902 nri::UpscalerProps upscalerProps = {};
You can’t perform that action at this time.
0 commit comments