mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-03-29 22:20:48 +00:00
Fixup HW thread switch delay condition for performance
This commit is contained in:
parent
148edc005a
commit
94239f5526
@ -1724,6 +1724,9 @@ bool lv2_obj::awake_unlocked(cpu_thread* cpu, s32 prio)
|
|||||||
if (current_ppu && changed_queue && has_free_hw_thread_space)
|
if (current_ppu && changed_queue && has_free_hw_thread_space)
|
||||||
{
|
{
|
||||||
if (current_ppu->prio.load().prio > lowest_new_priority)
|
if (current_ppu->prio.load().prio > lowest_new_priority)
|
||||||
|
{
|
||||||
|
// When not being set to All timers - activate only for sys_ppu_thread_start
|
||||||
|
if (current_ppu->gpr[11] == 0x35 || g_cfg.core.sleep_timers_accuracy == sleep_timers_accuracy_level::_all_timers)
|
||||||
{
|
{
|
||||||
if (!current_ppu->state.test_and_set(cpu_flag::yield) || current_ppu->hw_sleep_time != 0)
|
if (!current_ppu->state.test_and_set(cpu_flag::yield) || current_ppu->hw_sleep_time != 0)
|
||||||
{
|
{
|
||||||
@ -1735,6 +1738,7 @@ bool lv2_obj::awake_unlocked(cpu_thread* cpu, s32 prio)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return changed_queue;
|
return changed_queue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user