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

Method EndFrame

IntelPresentMon/Core/source/gfx/Graphics.cpp:223–239  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

221 }
222
223 void Graphics::EndFrame()
224 {
225 if (auto hr = pContext2d->EndDraw(); FAILED(hr))
226 {
227 pmlog_error().hr(hr);
228 }
229
230 fastRenderer->EndFrame(*pContext3d);
231
232 {
233 const UINT interval = tearingActive ? 0 : 1;
234 const UINT flags = tearingActive ? DXGI_PRESENT_ALLOW_TEARING : 0;
235 pmlog_hr << pSwapChain->Present(interval, flags);
236 }
237
238 fastRenderer->ResizeGeometryBuffersIfNecessary(*pDevice);
239 }
240
241 const DimensionsI& Graphics::GetDimensions() const
242 {

Callers 1

Render_Method · 0.45

Calls 2

PresentMethod · 0.80

Tested by

no test coverage detected