diff --git a/Ryujinx.Graphics/Graphics3d/NvGpuEngine3d.cs b/Ryujinx.Graphics/Graphics3d/NvGpuEngine3d.cs index c15ac0b552..2e6eeab82b 100644 --- a/Ryujinx.Graphics/Graphics3d/NvGpuEngine3d.cs +++ b/Ryujinx.Graphics/Graphics3d/NvGpuEngine3d.cs @@ -91,7 +91,9 @@ namespace Ryujinx.Graphics.Graphics3d if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method)) { ProfileConfig profile = Profiles.GPU.Engine3d.CallMethod; + profile.SessionItem = method.Method.Name; + Profile.Begin(profile); method(vmm, methCall); @@ -202,7 +204,9 @@ namespace Ryujinx.Graphics.Graphics3d private void SetFrameBuffer(NvGpuVmm vmm, int fbIndex) { ProfileConfig profile = Profiles.GPU.Engine3d.SetFrameBuffer; - profile.SessionItem = fbIndex.ToString(); + + profile.SessionItem = fbIndex.ToString(); + Profile.Begin(profile); long va = MakeInt64From2xInt32(NvGpuEngine3dReg.FrameBufferNAddress + fbIndex * 0x10); diff --git a/Ryujinx.Graphics/Graphics3d/NvGpuEngineM2mf.cs b/Ryujinx.Graphics/Graphics3d/NvGpuEngineM2mf.cs index a02b426e62..172c919bd4 100644 --- a/Ryujinx.Graphics/Graphics3d/NvGpuEngineM2mf.cs +++ b/Ryujinx.Graphics/Graphics3d/NvGpuEngineM2mf.cs @@ -39,7 +39,8 @@ namespace Ryujinx.Graphics.Graphics3d if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method)) { ProfileConfig profile = Profiles.GPU.EngineM2mf.CallMethod; - profile.SessionItem = method.Method.Name; + + profile.SessionItem = method.Method.Name; Profile.Begin(profile); method(vmm, methCall); @@ -210,4 +211,4 @@ namespace Ryujinx.Graphics.Graphics3d Registers[(int)reg] = value; } } -} \ No newline at end of file +} diff --git a/Ryujinx.Graphics/Graphics3d/NvGpuEngineP2mf.cs b/Ryujinx.Graphics/Graphics3d/NvGpuEngineP2mf.cs index 968a659ad8..83ad0e704d 100644 --- a/Ryujinx.Graphics/Graphics3d/NvGpuEngineP2mf.cs +++ b/Ryujinx.Graphics/Graphics3d/NvGpuEngineP2mf.cs @@ -56,7 +56,8 @@ namespace Ryujinx.Graphics.Graphics3d if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method)) { ProfileConfig profile = Profiles.GPU.EngineP2mf.PushData; - profile.SessionItem = method.Method.Name; + + profile.SessionItem = method.Method.Name; Profile.Begin(profile); method(vmm, methCall); diff --git a/Ryujinx.Profiler/ProfileConfig.cs b/Ryujinx.Profiler/ProfileConfig.cs index fd774b18f5..d70da6023e 100644 --- a/Ryujinx.Profiler/ProfileConfig.cs +++ b/Ryujinx.Profiler/ProfileConfig.cs @@ -120,7 +120,7 @@ namespace Ryujinx.Profiler { public static ProfileConfig CallMethod = new ProfileConfig() { - Category = "GPU.Engine3D", + Category = "GPU.Engine3D", SessionGroup = "CallMethod", };