mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 00:31:31 +00:00
[idd] capture: replay only completed frames
Track the newest submitted and completed frame independently. Only retain or replay a frame after its copy callback succeeds. Keep the prior completed frame when a newer copy fails, and compare publication sequences so out-of-order callbacks cannot move backward.
This commit is contained in:
@@ -744,7 +744,7 @@ void CSwapChainProcessor::CompletionFunction(
|
||||
sc->m_devContext->RecordFrameTiming(readyEnd - publishStart);
|
||||
sc->m_devContext->SetFrameTiming(fbRes->GetFrameIndex(),
|
||||
fbRes->GetCaptureTime(), postProcessTime, copyTime, readyTime);
|
||||
sc->m_devContext->CompleteFrameBuffer(fbRes->GetFrameIndex());
|
||||
sc->m_devContext->CompleteFrameBuffer(fbRes->GetFrameIndex(), true);
|
||||
sc->ReleaseCandidate(candidateIndex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user