Add logging of return values of some DLSSG calls

This commit is contained in:
FakeMichau
2026-06-08 01:11:13 +02:00
parent 37adc28343
commit 16d54f6ba3
+12 -2
View File
@@ -364,13 +364,23 @@ bool DLSSG_Dx12::Dispatch()
options.dynamicTargetFrameRate = Config::Instance()->FGDLSSGFramerateTargetDMFG.value_or_default();
}
StreamlineProxy::DLSSGSetOptions()(viewport, options);
auto dlssgSetOptionsResult = StreamlineProxy::DLSSGSetOptions()(viewport, options);
if (dlssgSetOptionsResult != sl::Result::eOk)
{
LOG_ERROR("Couldn't set DLSSG options, error: {}", magic_enum::enum_name(dlssgSetOptionsResult));
}
sl::ReflexOptions reflexConst = {};
reflexConst.mode = sl::ReflexMode::eLowLatency;
reflexConst.useMarkersToOptimize = ReflexHooks::gameIsSendingMarkers();
StreamlineProxy::ReflexSetOptions()(reflexConst);
auto reflexSetOptionsResult = StreamlineProxy::ReflexSetOptions()(reflexConst);
if (reflexSetOptionsResult != sl::Result::eOk)
{
LOG_ERROR("Couldn't set Reflex options, error: {}", magic_enum::enum_name(reflexSetOptionsResult));
}
if (!_haveHudless.has_value())
{