Skip to content

Commit

Permalink
hack to fix flickering on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillonb committed Jan 14, 2025
1 parent f8a7d80 commit 4536b5a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,10 @@ bool WSI::begin_frame()
#ifdef VULKAN_DEBUG
LOGI("AcquireNextImageKHR is suboptimal, will recreate.\n");
#endif
#ifndef N64_MACOS // Hack - this seems to always be true on MoltenVK
swapchain_is_suboptimal = true;
LOGW("Swapchain suboptimal.\n");
#endif
}

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

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

0 comments on commit 4536b5a

Please sign in to comment.