Skip to content

Commit 9b4ed59

Browse files
Setting deferral time limit to avoid deferred presents being classified as lost incorrectly.
1 parent 84ec34f commit 9b4ed59

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

IntelPresentMon/PresentMonService/RealtimePresentMonSession.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,11 @@ PM_STATUS RealtimePresentMonSession::StartTraceSession() {
171171
}
172172
}
173173

174+
// Set deferral time limit to 2 seconds
175+
if (trace_session_.mPMConsumer->mDeferralTimeLimit == 0) {
176+
trace_session_.mPMConsumer->mDeferralTimeLimit = trace_session_.mTimestampFrequency.QuadPart * 2;
177+
}
178+
174179
// Start the consumer and output threads
175180
StartConsumerThread(trace_session_.mTraceHandle);
176181
StartOutputThread();

0 commit comments

Comments
 (0)