Răsfoiți Sursa

Bump the maximum number of threads

gdkchan 8 ani în urmă
părinte
comite
b27944c0b5
2 a modificat fișierele cu 4 adăugiri și 3 ștergeri
  1. 1 1
      Ryujinx.Core/OsHle/MemoryRegions.cs
  2. 3 2
      Ryujinx.Core/OsHle/Process.cs

+ 1 - 1
Ryujinx.Core/OsHle/MemoryRegions.cs

@@ -16,7 +16,7 @@ namespace Ryujinx.Core.OsHle
 
         public const long MainStackAddress = AMemoryMgr.AddrSize - MainStackSize;
 
-        public const long TlsPagesSize = 0x4000;
+        public const long TlsPagesSize = 0x20000;
 
         public const long TlsPagesAddress = MainStackAddress - TlsPagesSize;
 

+ 3 - 2
Ryujinx.Core/OsHle/Process.cs

@@ -15,8 +15,9 @@ namespace Ryujinx.Core.OsHle
 {
     class Process : IDisposable
     {
-        private const int TlsSize       = 0x200;
-        private const int TotalTlsSlots = 32;
+        private const int TlsSize = 0x200;
+
+        private const int TotalTlsSlots = (int)MemoryRegions.TlsPagesSize / TlsSize;
 
         private const int TickFreq = 19_200_000;