Skip to content

Commit d32790d

Browse files
committed
cleaning dynamic reactive mask stuff
1 parent 3f2cecf commit d32790d

File tree

2 files changed

+5
-12
lines changed

2 files changed

+5
-12
lines changed

CyberXeSS/CyberXess.h

+4-11
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ class FeatureContext
242242

243243
// xess
244244
xess_context_handle_t xessContext = nullptr;
245-
bool xessMaskEnabled = true;
246245
bool xessInit = false;
247246

248247
// cas
@@ -555,11 +554,6 @@ class FeatureContext
555554

556555
#pragma region xess methods
557556

558-
bool XeSSMaskEnabled()
559-
{
560-
return xessMaskEnabled;
561-
}
562-
563557
bool XeSSInit(ID3D12Device* device, const NVSDK_NGX_Parameter* initParams)
564558
{
565559
if (device == nullptr)
@@ -681,12 +675,14 @@ class FeatureContext
681675
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (!AutoExposure) {0:b}", xessParams.initFlags);
682676
}
683677

684-
if (!CyberXessContext::instance()->MyConfig->HDR.value_or(!Hdr))
678+
if (!CyberXessContext::instance()->MyConfig->HDR.value_or(Hdr))
685679
{
686680
xessParams.initFlags |= XESS_INIT_FLAG_LDR_INPUT_COLOR;
687681
CyberXessContext::instance()->MyConfig->HDR = false;
688-
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (HDR) {0:b}", xessParams.initFlags);
682+
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (LDR) {0:b}", xessParams.initFlags);
689683
}
684+
else
685+
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (HDR) {0:b}", xessParams.initFlags);
690686

691687
if (CyberXessContext::instance()->MyConfig->JitterCancellation.value_or(JitterMotion))
692688
{
@@ -704,12 +700,9 @@ class FeatureContext
704700

705701
if (!CyberXessContext::instance()->MyConfig->DisableReactiveMask.value_or(true))
706702
{
707-
xessMaskEnabled = true;
708703
xessParams.initFlags |= XESS_INIT_FLAG_RESPONSIVE_PIXEL_MASK;
709704
spdlog::info("FeatureContext::XeSSInit xessParams.initFlags (ReactiveMaskActive) {0:b}", xessParams.initFlags);
710705
}
711-
else
712-
xessMaskEnabled = false;
713706

714707
#pragma endregion
715708

nvngx.ini

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ QualityRatioUltraPerformance=auto
153153

154154
[Hotfix]
155155
; Force remove XESS_INIT_FLAG_RESPONSIVE_PIXEL_MASK from init flags
156-
; true or false - Default (auto) is false
156+
; true or false - Default (auto) is true
157157
DisableReactiveMask=auto
158158

159159
; These settings defines each resources initial resource

0 commit comments

Comments
 (0)