mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-05 06:21:26 +12:00
Optimization: disable atomic_wait_engine notify callback for SPU
Disable placebo callback calls in notify_all. Don't use callback at all if TSX. Based on kd-11 findings.
This commit is contained in:
parent
fb27ed4deb
commit
6d3052c5dd
2 changed files with 1 additions and 11 deletions
|
@ -446,7 +446,7 @@ void cpu_thread::operator()()
|
|||
// Register thread in g_cpu_array
|
||||
s_cpu_counter++;
|
||||
|
||||
atomic_wait_engine::set_notify_callback([](const void*, u64 progress)
|
||||
atomic_wait_engine::set_notify_callback(g_use_rtm || id_type() != 1 /* PPU */ ? nullptr : +[](const void*, u64 progress)
|
||||
{
|
||||
static thread_local bool wait_set = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue