I am writing a vulkan application. I have noticed that resizing my window is a hair slow, and has a small amount of black tearing around the window as the swapchain isn't recreated quickly enough. I see similar behavior in the vulkan vkcube.exe sample as well.
With profiling I have traced the problem to vkCreateSwapchainKHR, which takes 14ms on my system, all of it in the driver. If I am targeting 60fps, it leaves only 1-2ms to draw the frame. Is ~14ms the expected behavior, or is there more I can do to understand the performance of this function?
I tried providing the old swapchain in the VkSwapchainCreateInfoKHR in case the driver can do something better with it, but it seemed to have no effect.
Windows 10 19044
Radeon Software Version 21.10.2
Ryzen 3 PRO 3200GE