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.
This commit is contained in:
parent
eb97f2d5c6
commit
69ad94997c
|
@ -98,7 +98,7 @@ void CodeViewWidget::Update()
|
||||||
|
|
||||||
u32 pc = PowerPC::ppcState.pc;
|
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);
|
Core::SetState(Core::State::Paused);
|
||||||
|
|
||||||
for (int i = 0; i < rowCount(); i++)
|
for (int i = 0; i < rowCount(); i++)
|
||||||
|
|
Loading…
Reference in New Issue