Add trace log around rendering

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2020-03-21 14:59:50 +00:00
parent 33a5cc604f
commit 68de7b1fdf
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 3 additions and 0 deletions

View File

@ -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++;