mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
debugger: Don't refresh no-thread window at a high rate
This commit is contained in:
parent
58dd2bff41
commit
b01220d2c5
3 changed files with 13 additions and 8 deletions
|
@ -763,19 +763,20 @@ std::function<cpu_thread*()> 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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue