SwapChain: Reduce buffer count from 3 to 2

This commit is contained in:
Connor McLaughlin committed 2022-08-10 17:08:59 +10:00
1 parent a5f18ae325
commit 4688277987
3 files changed
+6 -3

No files matched your search

+1 -1
View File
@@ -595,7 +595,7 @@ bool SwapChain::CreateSwapChain()
return false;
// Select number of images in swap chain, we prefer one buffer in the background to work on
u32 image_count = std::max(surface_capabilities.minImageCount + 1u, 2u);
u32 image_count = std::max(surface_capabilities.minImageCount, 2u);
// maxImageCount can be zero, in which case there isn't an upper limit on the number of buffers.
if (surface_capabilities.maxImageCount > 0)