cancel
Showing results for 
Search instead for 
Did you mean: 

OpenGL & Vulkan

compaqdrew
Journeyman III

vkCreateSwapchainKHR performance

 

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

 

 

 

 

0 Likes
2 Replies
dipak
Big Boss

Thank you for the query. I have whitelisted you and moved the post to the appropriate forum.

Thanks.

0 Likes

Hi compaqdrew,

Unfortunately that's just the current speed based on the hardware and software implementation. But we are always trying to improve in later iterations.

Thanks,

Owen

0 Likes