vkcube icon indicating copy to clipboard operation
vkcube copied to clipboard

wrong timeout value at vkAcquireNextImageKHR()

Open parkhw00 opened this issue 3 years ago • 1 comments

vkAcquireNextImageKHR() function accepts timeout value in nano-second unit. But, the timeout value is used as milli-second unit at mainloop_wayland(), mainloop_xcb() function as follow.

  result = vkAcquireNextImageKHR(vc->device, vc->swap_chain, 60,
                                 vc->semaphore, VK_NULL_HANDLE, &index);
  if (result != VK_SUCCESS)
     return;

Such a too short timeout value(60ns) causes program termination when screen lock or some other unstable compositor running.

parkhw00 avatar Aug 03 '21 08:08 parkhw00

Yeah this timeout is not viable for real hardware.

zmike avatar Sep 12 '23 14:09 zmike