mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-26 14:28:34 +00:00
DolphinQt: Don't update debug widgets when hidden
Saves on CPU usage when pausing/unpausing with the debugger disabled. This is especially important when using frame advance rapidly.
This commit is contained in:
parent
0a7395bfba
commit
92a655c8b9
14 changed files with 108 additions and 32 deletions
|
@ -92,6 +92,9 @@ void CodeViewWidget::FontBasedSizing()
|
|||
|
||||
void CodeViewWidget::Update()
|
||||
{
|
||||
if (!isVisible())
|
||||
return;
|
||||
|
||||
if (m_updating)
|
||||
return;
|
||||
|
||||
|
@ -568,6 +571,11 @@ void CodeViewWidget::mousePressEvent(QMouseEvent* event)
|
|||
}
|
||||
}
|
||||
|
||||
void CodeViewWidget::showEvent(QShowEvent* event)
|
||||
{
|
||||
Update();
|
||||
}
|
||||
|
||||
void CodeViewWidget::ToggleBreakpoint()
|
||||
{
|
||||
if (PowerPC::debug_interface.IsBreakpoint(GetContextAddress()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue