diff --git a/rpcs3/rpcs3qt/debugger_frame.cpp b/rpcs3/rpcs3qt/debugger_frame.cpp index 83163a81b2..f24ef43683 100644 --- a/rpcs3/rpcs3qt/debugger_frame.cpp +++ b/rpcs3/rpcs3qt/debugger_frame.cpp @@ -763,19 +763,20 @@ std::function debugger_frame::make_check_cpu(cpu_thread* cpu) void debugger_frame::UpdateUI() { - if (m_ui_update_ctr % 5 == 0) + const auto cpu = get_cpu(); + + // Refresh at a high rate during initialization (looks weird otherwise) + if (m_ui_update_ctr % (cpu || m_ui_update_ctr < 200 || m_debugger_list->m_dirty_flag ? 5 : 50) == 0) { // If no change to instruction position happened, update instruction list at 20hz ShowPC(); - - if (m_ui_update_ctr % 20 == 0) - { - // Update threads list at 5hz (low priority) - UpdateUnitList(); - } } - const auto cpu = get_cpu(); + if (m_ui_update_ctr % 20 == 0) + { + // Update threads list at 5hz (low priority) + UpdateUnitList(); + } if (!cpu) { diff --git a/rpcs3/rpcs3qt/debugger_list.cpp b/rpcs3/rpcs3qt/debugger_list.cpp index efb837b9dc..4b7e9a9ca7 100644 --- a/rpcs3/rpcs3qt/debugger_list.cpp +++ b/rpcs3/rpcs3qt/debugger_list.cpp @@ -120,6 +120,8 @@ void debugger_list::ShowAddress(u32 addr, bool select_addr, bool direct) m_follow_thread = false; } + m_dirty_flag = false; + u32 pc = m_start_addr; if (!direct && (m_follow_thread || select_addr)) @@ -396,6 +398,7 @@ void debugger_list::resizeEvent(QResizeEvent* event) for (u32 i = old_size; i < m_item_count; ++i) { insertItem(i, new QListWidgetItem("")); + m_dirty_flag = true; } } else diff --git a/rpcs3/rpcs3qt/debugger_list.h b/rpcs3/rpcs3qt/debugger_list.h index 4f1b19d1e9..b95fa49c3b 100644 --- a/rpcs3/rpcs3qt/debugger_list.h +++ b/rpcs3/rpcs3qt/debugger_list.h @@ -23,6 +23,7 @@ public: u32 m_selected_instruction = -1; bool m_follow_thread = true; // If true, follow the selected thread to wherever it goes in code bool m_showing_selected_instruction = false; + bool m_dirty_flag = false; QColor m_color_bp; QColor m_color_pc; QColor m_text_color_bp;