Slow down the GPU clock estimate.

This makes  Fat Princess for example much faster.
This commit is contained in:
Unknown W. Brackets 2013-04-07 16:55:48 -07:00
parent 5d017829ad
commit 210c7b1639
2 changed files with 4 additions and 2 deletions

View file

@ -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

View file

@ -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;
}