From 210c7b1639e2467322eb9039ea8823af2c75e4d6 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 7 Apr 2013 16:55:48 -0700 Subject: [PATCH] Slow down the GPU clock estimate. This makes Fat Princess for example much faster. --- GPU/GLES/DisplayListInterpreter.cpp | 3 ++- GPU/GPUCommon.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/GPU/GLES/DisplayListInterpreter.cpp b/GPU/GLES/DisplayListInterpreter.cpp index 4332d91d61..a66bd655f1 100644 --- a/GPU/GLES/DisplayListInterpreter.cpp +++ b/GPU/GLES/DisplayListInterpreter.cpp @@ -334,7 +334,8 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) { break; } - cyclesExecuted += 10 * count; + // Rough estimate, not sure what's correct. + cyclesExecuted += 80 * count; // TODO: Split this so that we can collect sequences of primitives, can greatly speed things up // on platforms where draw calls are expensive like mobile and D3D diff --git a/GPU/GPUCommon.cpp b/GPU/GPUCommon.cpp index eb26cdd7bb..ecfa801cf3 100644 --- a/GPU/GPUCommon.cpp +++ b/GPU/GPUCommon.cpp @@ -426,7 +426,8 @@ bool GPUCommon::InterpretList(DisplayList &list) inline void GPUCommon::UpdateCycles(u32 pc, u32 newPC) { - cyclesExecuted += (pc - cycleLastPC) / 4; + // Rough estimate, 2 CPU ticks (it's double the clock rate) per GPU instruction. + cyclesExecuted += 2 * (pc - cycleLastPC) / 4; cycleLastPC = newPC == 0 ? pc : newPC; }