mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[util] Implement dxvk:🧵:hardware_concurrency
This commit is contained in:
parent
c3b542878c
commit
6532302e34
@ -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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user