From 663131d5f8268944f1a394e1efa313f37c39afc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Sun, 15 Dec 2024 13:13:31 +0100 Subject: [PATCH] GPUDebug: Remove lastStepTime --- GPU/Debugger/Debugger.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/GPU/Debugger/Debugger.cpp b/GPU/Debugger/Debugger.cpp index f2d8d616b3..34b3a41c0b 100644 --- a/GPU/Debugger/Debugger.cpp +++ b/GPU/Debugger/Debugger.cpp @@ -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> 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;