MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ApplyFlipFrameType

Method ApplyFlipFrameType

PresentData/PresentMonTraceConsumer.cpp:3395–3411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3393}
3394
3395void PMTraceConsumer::ApplyFlipFrameType(
3396 std::shared_ptr<PresentEvent> const& present,
3397 uint64_t timestamp,
3398 FrameType frameType)
3399{
3400 DebugAssert(frameType != FrameType::NotSet);
3401
3402 for (auto p2 : present->DependentPresents) {
3403 if (p2->FinalState != PresentResult::Discarded) {
3404 VerboseTraceBeforeModifyingPresent(p2.get());
3405 SetScreenTime(p2, timestamp, frameType);
3406 }
3407 }
3408
3409 VerboseTraceBeforeModifyingPresent(present.get());
3410 SetScreenTime(present, timestamp, frameType);
3411}
3412
3413void PMTraceConsumer::ApplyPresentFrameType(
3414 std::shared_ptr<PresentEvent> const& present)

Callers

nothing calls this directly

Calls 1

SetScreenTimeFunction · 0.85

Tested by

no test coverage detected