mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-09 08:41:31 +00:00
[client] metrics: correlate Wayland presentation timing
This commit is contained in:
@@ -1689,12 +1689,10 @@ static bool egl_render(LG_Renderer * renderer, LG_RendererRotate rotate,
|
||||
const uint64_t composeEnd = nanotime();
|
||||
timing->composeTime += composeEnd - postOverlayStart;
|
||||
|
||||
const uint64_t swapStart = nanotime();
|
||||
const bool swapResult = app_eglSwapBuffers(
|
||||
this->display, this->surface, damage,
|
||||
this->noSwapDamage ? 0 : damageIdx);
|
||||
const uint64_t swapEnd = nanotime();
|
||||
timing->swapTime = swapEnd - swapStart;
|
||||
this->noSwapDamage ? 0 : damageIdx, timing->frameToken,
|
||||
&timing->swapTime, &timing->presentTracked);
|
||||
|
||||
if (!swapResult)
|
||||
DEBUG_ERROR("Failed to swap EGL buffers (eglError: 0x%x)", eglGetError());
|
||||
|
||||
Reference in New Issue
Block a user