mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
Merge pull request #11911 from TellowKrinkle/MTLParallelCompilation
VideoBackends:Metal: Enable shouldMaximizeConcurrentCompilation when available
This commit is contained in:
@ -95,6 +95,11 @@ bool Metal::VideoBackend::Initialize(const WindowSystemInfo& wsi)
|
|||||||
MRCOwned<id<MTLDevice>> adapter = std::move(devs[selected_adapter_index]);
|
MRCOwned<id<MTLDevice>> adapter = std::move(devs[selected_adapter_index]);
|
||||||
Util::PopulateBackendInfoFeatures(&g_Config, adapter);
|
Util::PopulateBackendInfoFeatures(&g_Config, adapter);
|
||||||
|
|
||||||
|
#if TARGET_OS_OSX
|
||||||
|
if (@available(macOS 13.3, *))
|
||||||
|
[adapter setShouldMaximizeConcurrentCompilation:YES];
|
||||||
|
#endif
|
||||||
|
|
||||||
UpdateActiveConfig();
|
UpdateActiveConfig();
|
||||||
|
|
||||||
MRCOwned<CAMetalLayer*> layer = MRCRetain(static_cast<CAMetalLayer*>(wsi.render_surface));
|
MRCOwned<CAMetalLayer*> layer = MRCRetain(static_cast<CAMetalLayer*>(wsi.render_surface));
|
||||||
|
Reference in New Issue
Block a user