Apply suggestions from AcK
Co-Authored-By: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
parent
5e1fb93fb4
commit
aaa7547fa9
4 changed files with 11 additions and 5 deletions
|
@ -91,7 +91,9 @@ namespace Ryujinx.Graphics.Graphics3d
|
||||||
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
|
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
|
||||||
{
|
{
|
||||||
ProfileConfig profile = Profiles.GPU.Engine3d.CallMethod;
|
ProfileConfig profile = Profiles.GPU.Engine3d.CallMethod;
|
||||||
|
|
||||||
profile.SessionItem = method.Method.Name;
|
profile.SessionItem = method.Method.Name;
|
||||||
|
|
||||||
Profile.Begin(profile);
|
Profile.Begin(profile);
|
||||||
|
|
||||||
method(vmm, methCall);
|
method(vmm, methCall);
|
||||||
|
@ -202,7 +204,9 @@ namespace Ryujinx.Graphics.Graphics3d
|
||||||
private void SetFrameBuffer(NvGpuVmm vmm, int fbIndex)
|
private void SetFrameBuffer(NvGpuVmm vmm, int fbIndex)
|
||||||
{
|
{
|
||||||
ProfileConfig profile = Profiles.GPU.Engine3d.SetFrameBuffer;
|
ProfileConfig profile = Profiles.GPU.Engine3d.SetFrameBuffer;
|
||||||
profile.SessionItem = fbIndex.ToString();
|
|
||||||
|
profile.SessionItem = fbIndex.ToString();
|
||||||
|
|
||||||
Profile.Begin(profile);
|
Profile.Begin(profile);
|
||||||
|
|
||||||
long va = MakeInt64From2xInt32(NvGpuEngine3dReg.FrameBufferNAddress + fbIndex * 0x10);
|
long va = MakeInt64From2xInt32(NvGpuEngine3dReg.FrameBufferNAddress + fbIndex * 0x10);
|
||||||
|
|
|
@ -39,7 +39,8 @@ namespace Ryujinx.Graphics.Graphics3d
|
||||||
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
|
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
|
||||||
{
|
{
|
||||||
ProfileConfig profile = Profiles.GPU.EngineM2mf.CallMethod;
|
ProfileConfig profile = Profiles.GPU.EngineM2mf.CallMethod;
|
||||||
profile.SessionItem = method.Method.Name;
|
|
||||||
|
profile.SessionItem = method.Method.Name;
|
||||||
|
|
||||||
Profile.Begin(profile);
|
Profile.Begin(profile);
|
||||||
method(vmm, methCall);
|
method(vmm, methCall);
|
||||||
|
@ -210,4 +211,4 @@ namespace Ryujinx.Graphics.Graphics3d
|
||||||
Registers[(int)reg] = value;
|
Registers[(int)reg] = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,8 @@ namespace Ryujinx.Graphics.Graphics3d
|
||||||
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
|
if (_methods.TryGetValue(methCall.Method, out NvGpuMethod method))
|
||||||
{
|
{
|
||||||
ProfileConfig profile = Profiles.GPU.EngineP2mf.PushData;
|
ProfileConfig profile = Profiles.GPU.EngineP2mf.PushData;
|
||||||
profile.SessionItem = method.Method.Name;
|
|
||||||
|
profile.SessionItem = method.Method.Name;
|
||||||
|
|
||||||
Profile.Begin(profile);
|
Profile.Begin(profile);
|
||||||
method(vmm, methCall);
|
method(vmm, methCall);
|
||||||
|
|
|
@ -120,7 +120,7 @@ namespace Ryujinx.Profiler
|
||||||
{
|
{
|
||||||
public static ProfileConfig CallMethod = new ProfileConfig()
|
public static ProfileConfig CallMethod = new ProfileConfig()
|
||||||
{
|
{
|
||||||
Category = "GPU.Engine3D",
|
Category = "GPU.Engine3D",
|
||||||
SessionGroup = "CallMethod",
|
SessionGroup = "CallMethod",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue