mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-09-26 07:35:37 +00:00
Change descriptor set lock to spinlock
* We don't expect contention on this, the only time it will contend is when actively capturing a frame between updates and submits reading the descriptor contents, so we penalise that case while making the background case faster - since a spinlock is 'free' to take when there's no contention.
This commit is contained in:
@@ -119,4 +119,4 @@ private:
|
||||
#define SCOPED_READLOCK(rw) Threading::ScopedReadLock CONCAT(scopedlock, __LINE__)(rw);
|
||||
#define SCOPED_WRITELOCK(rw) Threading::ScopedWriteLock CONCAT(scopedlock, __LINE__)(rw);
|
||||
|
||||
#define SCOPED_SPINLOCK(cs) Threading::SpinLock CONCAT(scopedlock, __LINE__)(cs);
|
||||
#define SCOPED_SPINLOCK(cs) Threading::ScopedSpinLock CONCAT(scopedlock, __LINE__)(cs);
|
||||
|
||||
Reference in New Issue
Block a user