Bring PS5 GTA6 to 120FPS with DLSS 5. An advanced Windows video player and capture enhancement tool featuring real-time preview for videos, images, and capture card sources. Combine AI-powered Super Resolution, DLSS5 image enhancement, and Frame Generation to deliver a next-generation visual experience.
C++
fix(capture-fg): recognise duplicate groups after hasGenerated is cleared
Veyra Goal Agentade8af0d0a71
diff --git a/src/engine/EngineController.cpp b/src/engine/EngineController.cppindex 0cf191f2..eb2ff4d3 100644--- a/src/engine/EngineController.cpp+++ b/src/engine/EngineController.cpp@@ -1048,9 +1048,12 @@ void EngineController::run(HWND window,std::wstring path,PlayerOptions options,s// B held 33 ms) and re-converge for ~1 s once motion resumed.// VEYRA_TEST_PAIR_PHASE_VALID_ONLY=1 restores the old rule for A/B.static const bool phaseValidOnly=GetEnvironmentVariableW(L"VEYRA_TEST_PAIR_PHASE_VALID_ONLY",nullptr,0)>0;- const bool phaseSample=phaseValidOnly?valid==batch.fgCandidates:valid+invalid==batch.fgCandidates&&!failed;+ // resolveGeneration clears hasGenerated when no frame stayed valid,+ // so the evaluated group is recognised by its generated frames.+ const bool phaseSample=phaseValidOnly?valid==batch.fgCandidates&&batch.hasGenerated:+ batch.fgCandidates>0&&valid+invalid==batch.fgCandidates&&!failed;if(adaptiveCapturePhase&&watch.captureArrival>0&&phaseSample&&- batch.hasGenerated&&!batch.historyReset&&!batch.fgRecovery&&+ !batch.historyReset&&!batch.fgRecovery&&batch.batch.identity.settingsRevision==fgBudgetRevision&&watch.presentationGeneration==presentationGeneration.load()){int64_t requiredDelay=0;const auto observed=host100ns();