Add log for dropped encoder frames

This commit is contained in:
Patrick Nicolas committed 2023-06-26 22:09:48 +02:00
1 parent 47872011b5
commit 38cbf2ccbd
1 file changed
+3
+3
View File
@@ -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];