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

Method ConfigurePresentMon_

IntelPresentMon/Core/source/kernel/Kernel.cpp:324–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

322 }
323
324 void Kernel::ConfigurePresentMon_(const OverlaySpec& newSpec)
325 {
326 if (newSpec.telemetrySamplingPeriodMs != pm->GetGpuTelemetryPeriod()) {
327 pm->SetGpuTelemetryPeriod(newSpec.telemetrySamplingPeriodMs);
328 }
329 if (const auto currentEtwPeriod = pm->GetEtwFlushPeriod();
330 newSpec.manualEtwFlush != bool(currentEtwPeriod) ||
331 (currentEtwPeriod && *currentEtwPeriod != newSpec.etwFlushPeriod)) {
332 pm->SetEtwFlushPeriod(newSpec.manualEtwFlush ?
333 std::optional{ uint32_t(newSpec.etwFlushPeriod) } : std::nullopt);
334 }
335 }
336}

Callers

nothing calls this directly

Calls 4

GetGpuTelemetryPeriodMethod · 0.45
SetGpuTelemetryPeriodMethod · 0.45
GetEtwFlushPeriodMethod · 0.45
SetEtwFlushPeriodMethod · 0.45

Tested by

no test coverage detected