From f533e9c5a7f987e2c54c101b185c039c71a48fff Mon Sep 17 00:00:00 2001 From: xXJsonDeruloXx Date: Tue, 13 Oct 2026 13:51:03 -0400 Subject: [PATCH] chore: trace gamescope host-plane submissions --- .../gamescope/patches/0115-debug-frame-cadence.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tools/gamescope/patches/0115-debug-frame-cadence.patch b/tools/gamescope/patches/0115-debug-frame-cadence.patch index ec079614f..9c5b2f1d9 100644 --- a/tools/gamescope/patches/0115-debug-frame-cadence.patch +++ b/tools/gamescope/patches/0115-debug-frame-cadence.patch @@ -18,3 +18,14 @@ { uint64_t now = get_time_in_nanos(); +--- a/src/Backends/WaylandBackend.cpp ++++ b/src/Backends/WaylandBackend.cpp +@@ -1473,6 +1473,8 @@ + + void CWaylandPlane::Present( std::optional oState ) + { ++ if (m_pFrame && oState) ++ fprintf(stderr, "[dd-plane] now=%lu buffer=%p\n", get_time_in_nanos(), oState->pBuffer); + { + std::unique_lock lock( m_PlaneStateLock ); + m_oCurrentPlaneState = oState;