Skip to content

Commit 4536b5a

Browse files
committed
hack to fix flickering on macos
1 parent f8a7d80 commit 4536b5a

File tree

1 file changed

+4
-0
lines changed
  • src/contrib/parallel-rdp/parallel-rdp-standalone/vulkan

1 file changed

+4
-0
lines changed

src/contrib/parallel-rdp/parallel-rdp-standalone/vulkan/wsi.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -720,8 +720,10 @@ bool WSI::begin_frame()
720720
#ifdef VULKAN_DEBUG
721721
LOGI("AcquireNextImageKHR is suboptimal, will recreate.\n");
722722
#endif
723+
#ifndef N64_MACOS // Hack - this seems to always be true on MoltenVK
723724
swapchain_is_suboptimal = true;
724725
LOGW("Swapchain suboptimal.\n");
726+
#endif
725727
}
726728

727729
if (result >= 0)
@@ -902,7 +904,9 @@ bool WSI::end_frame()
902904
#ifdef VULKAN_DEBUG
903905
LOGI("QueuePresent is suboptimal, will recreate.\n");
904906
#endif
907+
#ifndef N64_MACOS // Hack - this seems to always be true on MoltenVK
905908
swapchain_is_suboptimal = true;
909+
#endif
906910
}
907911

908912
// The present semaphore is consumed even on OUT_OF_DATE, etc.

0 commit comments

Comments
 (0)