[client] metrics: correlate Wayland presentation timing

This commit is contained in:
Geoffrey McRae
2026-08-06 17:29:44 +10:00
parent d3ee46f376
commit ea6e155bbf
11 changed files with 327 additions and 63 deletions

View File

@@ -181,7 +181,8 @@ struct LG_DisplayServerOps
EGLDisplay (*getEGLDisplay)(void);
EGLNativeWindowType (*getEGLNativeWindow)(void);
bool (*eglSwapBuffers)(EGLDisplay display, EGLSurface surface,
const struct Rect * damage, int count);
const struct Rect * damage, int count, uint64_t frameToken,
uint64_t * swapTime, bool * presentTracked);
#endif
#ifdef ENABLE_OPENGL

View File

@@ -148,7 +148,8 @@ typedef struct LG_RendererFrameTiming
uint64_t effectsTime; /* post-processing work */
uint64_t desktopTime; /* desktop work, excluding effects */
uint64_t composeTime; /* composition, excluding UI overlay */
uint64_t swapTime; /* display-server buffer swap */
uint64_t swapTime; /* actual EGL buffer swap */
bool presentTracked; /* presentation feedback expected */
}
LG_RendererFrameTiming;