vkcube
vkcube copied to clipboard
wrong timeout value at vkAcquireNextImageKHR()
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.
Yeah this timeout is not viable for real hardware.