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

Method ApplyFlipDelay

PresentData/NvidiaTraceConsumer.cpp:70–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70void NVTraceConsumer::ApplyFlipDelay(PresentEvent* present, uint32_t threadId)
71{
72 auto flipIter = mNvFlipRequestByThreadId.find(threadId);
73 if (flipIter != mNvFlipRequestByThreadId.end()) {
74 present->FlipDelay = flipIter->second.FlipDelay;
75 present->FlipToken = flipIter->second.FlipToken;
76 // Clear the map (we want the whole map cleared, not just the element with the thread)
77 mNvFlipRequestByThreadId.clear();
78 }
79}

Callers 1

HandleDXGKEventMethod · 0.80

Calls 1

endMethod · 0.45

Tested by

no test coverage detected