diff --git a/src/util/thread.h b/src/util/thread.h index 46cb3213..f0c89483 100644 --- a/src/util/thread.h +++ b/src/util/thread.h @@ -106,6 +106,12 @@ namespace dxvk { return m_thread != nullptr && m_thread->joinable(); } + + static uint32_t hardware_concurrency() { + SYSTEM_INFO info = { }; + ::GetSystemInfo(&info); + return info.dwNumberOfProcessors; + } private: