summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorConnor McLaughlin <stenzek@gmail.com>2019-07-11 20:34:48 +1000
committerGitHub <noreply@github.com>2019-07-11 20:34:48 +1000
commit4c649d1a5d92ccb1cb106861d60d744b92188524 (patch)
tree25011e4e5197824643d837414f3a2ebb66d283a2 /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent8d8d1037398f0aebd4fcec478ace20dfef91e4cc (diff)
parent9c245655fbb1deea183d47a53dbd6ecaab3bcb4a (diff)
Merge pull request #8238 from lioncash/video-stats
VideoCommon/Statistics: Minor cleanup changes
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 5299401f68..2e40b6d863 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -51,13 +51,13 @@ static u32 InterpretDisplayList(u32 address, u32 size)
if (startAddress != nullptr)
{
// temporarily swap dl and non-dl (small "hack" for the stats)
- Statistics::SwapDL();
+ g_stats.SwapDL();
Run(DataReader(startAddress, startAddress + size), &cycles, true);
- INCSTAT(stats.thisFrame.numDListsCalled);
+ INCSTAT(g_stats.this_frame.num_dlists_called);
// un-swap
- Statistics::SwapDL();
+ g_stats.SwapDL();
}
return cycles;
@@ -114,7 +114,7 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list)
u32 value = src.Read<u32>();
LoadCPReg(sub_cmd, value, is_preprocess);
if (!is_preprocess)
- INCSTAT(stats.thisFrame.numCPLoads);
+ INCSTAT(g_stats.this_frame.num_cp_loads);
}
break;
@@ -132,7 +132,7 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list)
u32 xf_address = Cmd2 & 0xFFFF;
LoadXFReg(transfer_size, xf_address, src);
- INCSTAT(stats.thisFrame.numXFLoads);
+ INCSTAT(g_stats.this_frame.num_xf_loads);
}
src.Skip<u32>(transfer_size);
}
@@ -208,7 +208,7 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list)
else
{
LoadBPReg(bp_cmd);
- INCSTAT(stats.thisFrame.numBPLoads);
+ INCSTAT(g_stats.this_frame.num_bp_loads);
}
}
break;