From 68de7b1fdff7b0f8e9f6527b8ad1c607ec83af0f Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 21 Mar 2020 14:59:50 +0000 Subject: [PATCH] Add trace log around rendering Signed-off-by: Yuxuan Shui --- src/picom.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/picom.c b/src/picom.c index 5f17cb7..643d53e 100644 --- a/src/picom.c +++ b/src/picom.c @@ -1453,11 +1453,14 @@ static void _draw_callback(EV_P_ session_t *ps, int revents attr_unused) { // If the screen is unredirected, free all_damage to stop painting if (ps->redirected && ps->o.stoppaint_force != ON) { static int paint = 0; + + log_trace("Render start, frame %d", paint); if (ps->o.experimental_backends) { paint_all_new(ps, bottom, false); } else { paint_all(ps, bottom, false); } + log_trace("Render end"); ps->first_frame = false; paint++;