mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 00:11:24 +12:00
rsx/gl: Minor cleanup and optimization
- Track register change status - Remove unused gl classes
This commit is contained in:
parent
8695f95267
commit
19d808d378
8 changed files with 64 additions and 137 deletions
|
@ -437,10 +437,6 @@ namespace rsx
|
|||
thread_ctrl::set_thread_affinity_mask(thread_ctrl::get_affinity_mask(thread_class::rsx));
|
||||
}
|
||||
|
||||
// Weak cpus need all the help they can get, sleep instead of yield loop
|
||||
// Lowers decompiler responsiveness but improves emulator performance
|
||||
const bool prefer_sleep = (std::thread::hardware_concurrency() < 6);
|
||||
|
||||
while (!Emu.IsStopped() && !m_rsx_thread_exiting)
|
||||
{
|
||||
if (!on_decompiler_task())
|
||||
|
@ -449,13 +445,9 @@ namespace rsx
|
|||
{
|
||||
std::this_thread::sleep_for(1ms);
|
||||
}
|
||||
else if (prefer_sleep)
|
||||
{
|
||||
std::this_thread::sleep_for(500us);
|
||||
}
|
||||
else
|
||||
{
|
||||
std::this_thread::yield();
|
||||
std::this_thread::sleep_for(500us);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue