This commit is contained in:
TheRazerMD committed 2026-10-23 02:50:44 +02:00
commit 990ff98ec5
2 files changed
+11 -3

No files matched your search

@@ -29,7 +29,7 @@ HRESULT STDMETHODCALLTYPE AmdExtAntiLagApi::UpdateAntiLagState(VOID* pData)
result = InputCommon::set_marker(inputContext, device, markerParams);
if (result != InputResult::Ok)
if (result != InputResult::Ok && result != InputResult::UsingDifferentInput)
{
LOG_ERROR("set_marker result: {}", magic_enum::enum_name(result));
return E_FAIL;
+10 -2
View File
@@ -1448,8 +1448,16 @@ void InputCommon::update()
InputResult InputCommon::mark_present_start(IUnknown* pDevice)
{
// TODO: could allow AL2 but need to check the InputMarkerMode of the active AL2 input
if (activeInput != LowLatencyInput::UeLowLatency)
auto fg = State::Instance().CurrentFG();
bool fsrfgTypesFrames =
State::Instance().activeFgOutput == FGOutput::FSRFG && fg != nullptr && fg->IsActive() && !fg->IsPaused();
// UE only sends simulation markers
bool marksEnds =
activeInput == LowLatencyInput::UeLowLatency || (activeInput == LowLatencyInput::AntiLag2 && fsrfgTypesFrames &&
!reports_frame_generation(LowLatencyInput::AntiLag2));
if (!marksEnds)
return InputResult::InputNotSupported;
// TODO: this is missing the frame id required by other outputs