From e3bacfa77481738aabee5f8b8be3f8ff91132c43 Mon Sep 17 00:00:00 2001 From: Shihta Kuan Date: Sun, 25 Jun 2023 20:49:53 +0800 Subject: [PATCH] Set COMPlus_DefaultStackSize to 2M in macOS (#5349) * Set COMPlus_DefaultStackSize to 2M in macOS * Remove the custom thread stack size on Ryujinx.Ava --- distribution/macos/Info.plist | 7 ++++++- src/Ryujinx.Ava/AppHost.cs | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/distribution/macos/Info.plist b/distribution/macos/Info.plist index 6c3f7717c..968814f94 100644 --- a/distribution/macos/Info.plist +++ b/distribution/macos/Info.plist @@ -39,10 +39,15 @@ CSResourcesFileMapped NSHumanReadableCopyright - Copyright © 2018 - 2022 Ryujinx Team and Contributors. + Copyright © 2018 - 2023 Ryujinx Team and Contributors. LSApplicationCategoryType public.app-category.games LSMinimumSystemVersion 11.0 + LSEnvironment + + COMPlus_DefaultStackSize + 200000 + diff --git a/src/Ryujinx.Ava/AppHost.cs b/src/Ryujinx.Ava/AppHost.cs index d3e0ea392..a25713796 100644 --- a/src/Ryujinx.Ava/AppHost.cs +++ b/src/Ryujinx.Ava/AppHost.cs @@ -134,7 +134,7 @@ namespace Ryujinx.Ava _inputManager = inputManager; _accountManager = accountManager; _userChannelPersistence = userChannelPersistence; - _renderingThread = new Thread(RenderLoop, 1 * 1024 * 1024) { Name = "GUI.RenderThread" }; + _renderingThread = new Thread(RenderLoop) { Name = "GUI.RenderThread" }; _lastCursorMoveTime = Stopwatch.GetTimestamp(); _glLogLevel = ConfigurationState.Instance.Logger.GraphicsDebugLevel; _topLevel = topLevel;