c/multi: Improve frame timing printing a little bit

This commit is contained in:
Jakob Bornecrantz 2022-09-01 18:49:46 +01:00 committed by Moses Turner
parent f2b8855e51
commit b09aa79f4a

View file

@ -202,13 +202,19 @@ wait_for_scheduled_free(struct multi_compositor *mc)
break; break;
} }
U_LOG_D("next: %f (%" PRIu64 ")\nprogress: %f (%" PRIu64 ")\nscheduled: %f (%" PRIu64 ")\n", U_LOG_D(
time_ns_to_ms_f((int64_t)v_mc->slot_next_frame_display - now_ns), // "Two frames have completed GPU work and are waiting to be displayed."
v_mc->slot_next_frame_display, // "\n\tnext frame: %fms (%" PRIu64
time_ns_to_ms_f((int64_t)v_mc->progress.display_time_ns - now_ns), // ") (next time for compositor to pick up frame)"
v_mc->progress.display_time_ns, // "\n\tprogress: %fms (%" PRIu64
time_ns_to_ms_f((int64_t)v_mc->scheduled.display_time_ns - now_ns), // ") (latest completed frame)"
v_mc->scheduled.display_time_ns); // "\n\tscheduled: %fms (%" PRIu64 ") (oldest waiting frame)",
time_ns_to_ms_f((int64_t)v_mc->slot_next_frame_display - now_ns), //
v_mc->slot_next_frame_display, //
time_ns_to_ms_f((int64_t)v_mc->progress.display_time_ns - now_ns), //
v_mc->progress.display_time_ns, //
time_ns_to_ms_f((int64_t)v_mc->scheduled.display_time_ns - now_ns), //
v_mc->scheduled.display_time_ns); //
os_mutex_unlock(&mc->slot_lock); os_mutex_unlock(&mc->slot_lock);