mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-07 19:23:14 +00:00
video_core: Use adaptive mutex on Linux (#2105)
Fix performance regression with #1973 on SteamDeck
This commit is contained in:
parent
9a956f5ed0
commit
81ad575b22
3 changed files with 41 additions and 0 deletions
|
@ -8,6 +8,9 @@
|
|||
#include <span>
|
||||
#include <utility>
|
||||
|
||||
#ifdef __linux__
|
||||
#include "common/adaptive_mutex.h"
|
||||
#endif
|
||||
#include "common/spin_lock.h"
|
||||
#include "common/types.h"
|
||||
#include "video_core/page_manager.h"
|
||||
|
@ -272,7 +275,11 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP
|
||||
Common::AdaptiveMutex lock;
|
||||
#else
|
||||
Common::SpinLock lock;
|
||||
#endif
|
||||
PageManager* tracker;
|
||||
VAddr cpu_addr = 0;
|
||||
WordsArray cpu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue