Commit 694d6c7f authored by Philip Rebohle's avatar Philip Rebohle

[util] Improve ticket lock implementation

Atomic fetch-and-add on unlock is not needed since no other thread can
modify the serving counter after the calling thread acquired the lock.
May slightly improve performance in games relying on ID3D10Multithread.
parent d7f4e44c
......@@ -26,7 +26,8 @@ namespace dxvk::sync {
void unlock() {
m_serving.fetch_add(1, std::memory_order_release);
uint32_t serveNext = m_serving.load() + 1;, std::memory_order_release);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment