From 38cbf2ccbd11be2bb6cf3ec0e9b5c0e88db75219 Mon Sep 17 00:00:00 2001 From: Patrick Nicolas Date: Mon, 26 Jun 2023 22:03:17 +0200 Subject: [PATCH] Add log for dropped encoder frames --- server/driver/wivrn_comp_target.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/driver/wivrn_comp_target.cpp b/server/driver/wivrn_comp_target.cpp index d0cf6e28..55e06302 100644 --- a/server/driver/wivrn_comp_target.cpp +++ b/server/driver/wivrn_comp_target.cpp @@ -523,6 +523,9 @@ static void * comp_wivrn_present_thread(void * void_param) } VkResult res = vk->vkWaitForFences(vk->device, nb_fences, fences.data(), VK_TRUE, UINT64_MAX); + if (nb_fences > 1) { + U_LOG_I("Encoder group %d dropped %d frames", param->thread->index, nb_fences - 1); + } vk_check_error("vkWaitForFences", res, NULL); const auto & psc_image = cn->psc.images[presenting_index];