From e30eb788916d3480181fb72e9eb5837cadc80815 Mon Sep 17 00:00:00 2001 From: Dor Askayo Date: Mon, 19 Jun 2023 01:22:28 +0300 Subject: [PATCH] clutter/frame-clock: Treat GPU rendering duration of 0 as valid This is expected for the common case of direct scanout of Wayland buffers where transactions guarantee that all buffer fences are signalled before a buffer is included in a frame. Part-of: --- clutter/clutter/clutter-frame-clock.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/clutter/clutter/clutter-frame-clock.c b/clutter/clutter/clutter-frame-clock.c index 2fb20f689..cf5c99144 100644 --- a/clutter/clutter/clutter-frame-clock.c +++ b/clutter/clutter/clutter-frame-clock.c @@ -323,8 +323,7 @@ clutter_frame_clock_notify_presented (ClutterFrameClock *frame_clock, frame_clock->got_measurements_last_frame = FALSE; - if (frame_info->cpu_time_before_buffer_swap_us != 0 && - frame_info->gpu_rendering_duration_ns != 0) + if (frame_info->cpu_time_before_buffer_swap_us != 0) { int64_t dispatch_to_swap_us, swap_to_rendering_done_us, swap_to_flip_us;