mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06: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:
@ -13,6 +13,7 @@
|
||||
|
||||
class QTableWidget;
|
||||
class QCloseEvent;
|
||||
class QShowEvent;
|
||||
|
||||
class RegisterWidget : public QDockWidget
|
||||
{
|
||||
@ -30,6 +31,7 @@ signals:
|
||||
|
||||
protected:
|
||||
void closeEvent(QCloseEvent*) override;
|
||||
void showEvent(QShowEvent* event) override;
|
||||
|
||||
private:
|
||||
void CreateWidgets();
|
||||
@ -42,6 +44,8 @@ private:
|
||||
void AddRegister(int row, int column, RegisterType type, std::string register_name,
|
||||
std::function<u64()> get_reg, std::function<void(u64)> set_reg);
|
||||
|
||||
void Update();
|
||||
|
||||
QTableWidget* m_table;
|
||||
bool m_updating = false;
|
||||
};
|
||||
|
Reference in New Issue
Block a user