vulkan: Reserve 4 images in the swapchain by default
authorBenjamin Otte <otte@redhat.com>
Thu, 29 Mar 2018 02:56:07 +0000 (04:56 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 29 Mar 2018 03:02:15 +0000 (05:02 +0200)
commit7ee4bfd9d6add17d3ab3fbc24ae53d4a11efee88
tree42b408cfa1c6de53653d458c3a3b8301a98083cc
parente6d104bfa06c82630215d8ecba6d644976d99ac5
vulkan: Reserve 4 images in the swapchain by default

With the previous approach we would spend most of the time waiting for
the swapchain to be filled again because it seems the compositor takes
care of 2 images at once from time to time.

This is not visible in profiles because waiting for a frame is a
read/poll/whatever operation that does not take CPU. It's only
noticeable because the app becomes less responsive.
gdk/gdkvulkancontext.c