Skip to content

Commit

Permalink
Merge pull request #11911 from TellowKrinkle/MTLParallelCompilation
Browse files Browse the repository at this point in the history
VideoBackends:Metal: Enable shouldMaximizeConcurrentCompilation when available
  • Loading branch information
OatmealDome authored Jun 10, 2023
2 parents 83b0b8d + e7f4b76 commit 7752e24
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/Core/VideoBackends/Metal/MTLMain.mm
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ static bool WindowSystemTypeSupportsMetal(WindowSystemType type)
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));
Expand Down

0 comments on commit 7752e24

Please sign in to comment.