Skip to content

Commit

Permalink
fix: FIFO on android, instead of MAILBOX
Browse files Browse the repository at this point in the history
  • Loading branch information
BykadorovR committed Jun 3, 2024
1 parent ae1d3d7 commit 6d9e620
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Vulkan/Swapchain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,14 @@ void Swapchain::_initialize() {
}
// pick surface present mode
VkPresentModeKHR presentMode = VK_PRESENT_MODE_FIFO_KHR;
#ifndef __ANDROID__
for (const auto& availablePresentMode : _state->getDevice()->getSupportedSurfacePresentModes()) {
// triple buffering
if (availablePresentMode == VK_PRESENT_MODE_MAILBOX_KHR) {
presentMode = availablePresentMode;
}
}
#endif
// swap extent is the resolution of the swap chain images and
// it's almost always exactly equal to the resolution of the window
auto surfaceCapabilities = _state->getDevice()->getSupportedSurfaceCapabilities();
Expand Down

0 comments on commit 6d9e620

Please sign in to comment.