mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 12:13:50 +01:00
Avoid some debug stats when disabled.
This function can get called a lot sometimes, and an if helps on ARM a little.
This commit is contained in:
1 parent
bb2fb12edd
commit
cbb6c01d4c
1 file changed
+5
-3
+5
-3
@@ -559,12 +559,14 @@ void GPUCommon::SlowRunLoop(DisplayList &list)
|
||||
// The newPC parameter is used for jumps, we don't count cycles between.
|
||||
void GPUCommon::UpdatePC(u32 currentPC, u32 newPC) {
|
||||
// Rough estimate, 2 CPU ticks (it's double the clock rate) per GPU instruction.
|
||||
int executed = (currentPC - cycleLastPC) / 4;
|
||||
u32 executed = (currentPC - cycleLastPC) / 4;
|
||||
cyclesExecuted += 2 * executed;
|
||||
gpuStats.otherGPUCycles += 2 * executed;
|
||||
cycleLastPC = newPC == 0 ? currentPC : newPC;
|
||||
|
||||
gpuStats.gpuCommandsAtCallLevel[std::min(currentList->stackptr, 3)] += executed;
|
||||
if (g_Config.bShowDebugStats) {
|
||||
gpuStats.otherGPUCycles += 2 * executed;
|
||||
gpuStats.gpuCommandsAtCallLevel[std::min(currentList->stackptr, 3)] += executed;
|
||||
}
|
||||
|
||||
// Exit the runloop and recalculate things. This happens a lot in some games.
|
||||
easy_guard innerGuard(listLock);
|
||||
|
||||
Reference in new issue
Block a user