From 20628b6e5d69acd8ec6f4286bcc65cee58fd5776 Mon Sep 17 00:00:00 2001 From: degasus Date: Tue, 27 Jan 2015 23:37:17 +0100 Subject: [PATCH] OpcodeDecoder: Calculate decoding time for vertices --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {