GPUDebug: Remove lastStepTime

This commit is contained in:
Henrik Rydgård 2024-12-15 13:13:31 +01:00
parent b608257b46
commit 663131d5f8

View file

@ -35,7 +35,6 @@ static int thisFlipNum = 0;
bool g_primAfterDraw = false;
static double lastStepTime = -1.0;
static uint32_t g_skipPcOnce = 0;
static std::vector<std::pair<int, int>> restrictPrimRanges;
@ -65,7 +64,6 @@ void ClearBreak() {
breakNext = BreakNext::NONE;
breakAtCount = -1;
GPUStepping::ResumeFromStepping();
lastStepTime = -1.0;
}
BreakNext GetBreakNext() {
@ -94,7 +92,6 @@ void SetBreakNext(BreakNext next, GPUBreakpoints *breakpoints) {
if (GPUStepping::IsStepping()) {
GPUStepping::ResumeFromStepping();
}
lastStepTime = next == BreakNext::NONE ? -1.0 : time_now_d();
}
void SetBreakCount(int c, bool relative) {
@ -154,12 +151,7 @@ NotifyResult NotifyCommand(u32 pc, GPUBreakpoints *breakpoints) {
}
auto info = gpuDebug->DisassembleOp(pc);
if (lastStepTime >= 0.0) {
NOTICE_LOG(Log::GeDebugger, "Waiting at %08x, %s (%fms)", pc, info.desc.c_str(), (time_now_d() - lastStepTime) * 1000.0);
lastStepTime = -1.0;
} else {
NOTICE_LOG(Log::GeDebugger, "Waiting at %08x, %s", pc, info.desc.c_str());
}
NOTICE_LOG(Log::GeDebugger, "Waiting at %08x, %s", pc, info.desc.c_str());
g_skipPcOnce = pc;
breakNext = BreakNext::NONE;