Slow down the GPU clock estimate.
This makes Fat Princess for example much faster.
This commit is contained in:
parent
5d017829ad
commit
210c7b1639
2 changed files with 4 additions and 2 deletions
|
@ -334,7 +334,8 @@ void GLES_GPU::ExecuteOp(u32 op, u32 diff) {
|
||||||
break;
|
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
|
// 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
|
// on platforms where draw calls are expensive like mobile and D3D
|
||||||
|
|
|
@ -426,7 +426,8 @@ bool GPUCommon::InterpretList(DisplayList &list)
|
||||||
|
|
||||||
inline void GPUCommon::UpdateCycles(u32 pc, u32 newPC)
|
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;
|
cycleLastPC = newPC == 0 ? pc : newPC;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue