From d7a2f8ade697272f5a7a8845b25855fd43f558d4 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 18 Dec 2023 21:30:07 +0000 Subject: [PATCH] core: add a few debug logs 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 819a924..5a4735a 100644 --- a/src/picom.c +++ b/src/picom.c @@ -351,6 +351,7 @@ void schedule_render(session_t *ps, bool triggered_by_vblank attr_unused) { // We don't have enough data for render time estimates, maybe there's // no frame rendered yet, or the backend doesn't support render timing // information, schedule render immediately. + log_verbose("Not enough data for render time estimates."); goto schedule; } @@ -359,6 +360,8 @@ void schedule_render(session_t *ps, bool triggered_by_vblank attr_unused) { // vblank interval, there is no way we can make it. Instead of always // dropping frames, we try desperately to catch up and schedule a // render immediately. + log_verbose("Render budget: %u us >= frame time: %" PRIu32 " us", + render_budget, frame_time); goto schedule; }