diff options
| author | degasus <wickmarkus@web.de> | 2015-01-27 23:37:17 +0100 |
|---|---|---|
| committer | degasus <wickmarkus@web.de> | 2015-01-29 19:55:28 +0100 |
| commit | 20628b6e5d69acd8ec6f4286bcc65cee58fd5776 (patch) | |
| tree | 89b443d6b45bc74b9fcae9157179042d0ac5efef /Source/Core/VideoCommon/OpcodeDecoding.cpp | |
| parent | a2b872b9da5577632bc0f13d56930fbbe3376093 (diff) | |
OpcodeDecoder: Calculate decoding time for vertices
Diffstat (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/OpcodeDecoding.cpp | 4 |
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 { |
