Memory changes 2.1

* Fixes a few crashes

* Simplifies a few functions

* Changes a few calls to use faster methods
This commit is contained in:
LotP
2025-08-31 20:42:31 -05:00
committed by KeatonTheBot
parent a62deb8cfd
commit 61da23cb9e
7 changed files with 160 additions and 83 deletions
@@ -108,7 +108,7 @@ namespace Ryujinx.Graphics.Gpu.Engine.Threed
if (index < BlockSize)
{
int groupIndex = Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_registerToGroupMapping), (IntPtr)index);
int groupIndex = _registerToGroupMapping[index];
if (groupIndex != 0)
{
groupIndex--;