Skip to content

Commit

Permalink
Don't print "DLSS-G Feature Disabled" in games that don't even use it…
Browse files Browse the repository at this point in the history
… to begin with :)
  • Loading branch information
Kaldaien committed Oct 4, 2023
1 parent ea32bab commit dabc47d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/render/ngx/ngx_d3d12.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -285,12 +285,15 @@ SK_NGX_UpdateDLSSGStatus (void)
uiNumberOfFrames >= 1 &&
uiEnableDLSSGInterp && uiEnableOFA;

static UINT uiLastDLSSGState = UINT_MAX;
if (std::exchange (uiLastDLSSGState, (UINT)__SK_IsDLSSGActive) != (UINT)__SK_IsDLSSGActive)
if (SK_NGX_DLSSG_Handle != nullptr)
{
SK_LOGi0 ( L"DLSS-G Feature %ws!",
__SK_IsDLSSGActive ? L"Enabled"
: L"Disabled" );
static UINT uiLastDLSSGState = UINT_MAX;
if (std::exchange (uiLastDLSSGState, (UINT)__SK_IsDLSSGActive) != (UINT)__SK_IsDLSSGActive)
{
SK_LOGi0 ( L"DLSS-G Feature %ws!",
__SK_IsDLSSGActive ? L"Enabled"
: L"Disabled" );
}
}

__SK_ForceDLSSGPacing = __SK_IsDLSSGActive;
Expand Down

0 comments on commit dabc47d

Please sign in to comment.