VideoBackends:Metal: Enable shouldMaximizeConcurrentCompilation when available

This commit is contained in:
TellowKrinkle 2023-06-08 18:57:41 -05:00
parent 7845fb00ee
commit e7f4b7679b
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ bool Metal::VideoBackend::Initialize(const WindowSystemInfo& wsi)
MRCOwned<id<MTLDevice>> 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<CAMetalLayer*> layer = MRCRetain(static_cast<CAMetalLayer*>(wsi.render_surface));