mirror of
https://github.com/libretro/RetroArch
synced 2025-03-03 13:14:04 +00:00
(Vulkan) Emulate mailbox only with vsync (#13460)
This commit is contained in:
parent
b7d77e9484
commit
5b85339839
@ -2907,6 +2907,7 @@ bool vulkan_create_swapchain(gfx_ctx_vulkan_data_t *vk,
|
||||
VkPresentModeKHR swapchain_present_mode = VK_PRESENT_MODE_FIFO_KHR;
|
||||
settings_t *settings = config_get_ptr();
|
||||
VkCompositeAlphaFlagBitsKHR composite = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR;
|
||||
bool vsync = settings->bools.video_vsync;
|
||||
|
||||
vkDeviceWaitIdle(vk->context.device);
|
||||
vulkan_acquire_clear_fences(vk);
|
||||
@ -2919,7 +2920,7 @@ bool vulkan_create_swapchain(gfx_ctx_vulkan_data_t *vk,
|
||||
!surface_properties.currentExtent.height)
|
||||
return false;
|
||||
|
||||
if (swap_interval == 0 && vk->emulate_mailbox)
|
||||
if (swap_interval == 0 && vk->emulate_mailbox && vsync)
|
||||
{
|
||||
swap_interval = 1;
|
||||
vk->emulating_mailbox = true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user