From e7f4b7679bf8061e684eae716c5462a6ee0383ee Mon Sep 17 00:00:00 2001 From: TellowKrinkle Date: Thu, 8 Jun 2023 18:57:41 -0500 Subject: [PATCH] VideoBackends:Metal: Enable shouldMaximizeConcurrentCompilation when available --- Source/Core/VideoBackends/Metal/MTLMain.mm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Source/Core/VideoBackends/Metal/MTLMain.mm b/Source/Core/VideoBackends/Metal/MTLMain.mm index f799d5eea17a..596b278243e0 100644 --- a/Source/Core/VideoBackends/Metal/MTLMain.mm +++ b/Source/Core/VideoBackends/Metal/MTLMain.mm @@ -95,6 +95,11 @@ static bool WindowSystemTypeSupportsMetal(WindowSystemType type) MRCOwned> adapter = std::move(devs[selected_adapter_index]); Util::PopulateBackendInfoFeatures(&g_Config, adapter); +#if TARGET_OS_OSX + if (@available(macOS 13.3, *)) + [adapter setShouldMaximizeConcurrentCompilation:YES]; +#endif + UpdateActiveConfig(); MRCOwned layer = MRCRetain(static_cast(wsi.render_surface));