summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/OpcodeDecoding.cpp
diff options
context:
space:
mode:
authorskidau <skidau@gmail.com>2015-01-30 12:58:52 +1100
committerskidau <skidau@gmail.com>2015-01-30 12:58:52 +1100
commitb92eb03d26529103083984a46aee2db37aa853b3 (patch)
tree859c799c177a41a52f3856667a0516cc9f6fd0b2 /Source/Core/VideoCommon/OpcodeDecoding.cpp
parent83a9f1b85070b3372b63c52ba93cca20a367133c (diff)
parent20628b6e5d69acd8ec6f4286bcc65cee58fd5776 (diff)
Merge pull request #1973 from degasus/master
OpcodeDecoder: Calculate decoding time for vertices
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
-rw-r--r--Source/Core/VideoCommon/OpcodeDecoding.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp
index 0c1083b9c2..e347b93a76 100644
--- a/Source/Core/VideoCommon/OpcodeDecoding.cpp
+++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp
@@ -287,7 +287,9 @@ u8* OpcodeDecoder_Run(DataReader src, u32* cycles, bool in_display_list)
else
src.Skip(bytes);
}
- totalCycles += 1600;
+
+ // 4 GPU ticks per vertex, 3 CPU ticks per GPU tick
+ totalCycles += num_vertices * 4 * 3 + 6;
}
else
{