From 69ad94997c4efbe4005dd71b333b309a06a9767d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Tue, 17 Apr 2018 14:19:16 +0200 Subject: [PATCH] Qt/Debugger: Don't pause when already paused Fixes a severe performance issue which would cause the UI to use tons of CPU time and fail to update when scrolling with a breakpoint on PC. --- Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp index 1130ca7e7b..b04766f814 100644 --- a/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp +++ b/Source/Core/DolphinQt2/Debugger/CodeViewWidget.cpp @@ -98,7 +98,7 @@ void CodeViewWidget::Update() u32 pc = PowerPC::ppcState.pc; - if (PowerPC::debug_interface.IsBreakpoint(pc)) + if (Core::GetState() != Core::State::Paused && PowerPC::debug_interface.IsBreakpoint(pc)) Core::SetState(Core::State::Paused); for (int i = 0; i < rowCount(); i++)