I’m trying to find a good way to use swapchain for CAD-like scenarios. Rendering is performed not in a loop frame after frame but only if something is changed.
My code is here: Bitbucket See ‘example’ folder for MSVC 2015 project
Pre-built windows binary can be downloaded from here: Bitbucket | Git solution for teams using Jira
I create VK_PRESENT_MODE_FIFO_KHR swapchain with 2 images, basic vsync mode.
In this demo app frame is re-rendered on each left mouse button click. Each time with a different color, color and swapchain image are logged to console.
And on my NVIDIA GT 740M with 368.22 drivers on Win10 x64 I have 2 problems with this code:
-
Only rendering into swapchain image #0 is visible. Looks like vkQueuePresentKHR with image #1 is ignored by driver.
This ignoring of #1 image occurs also in game-like rendering loop but it’s much less noticeable. -
If window is left without updates for some time (around 30 seconds) index buffer (in device local memory) gets corrupted
External Image
Is it me doing something wrong or is it a driver bug?