mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-15 16:29:16 +01:00
[util] Implement dxvk:🧵:hardware_concurrency
This commit is contained in:
parent
c3b542878c
commit
6532302e34
@ -107,6 +107,12 @@ namespace dxvk {
|
|||||||
&& m_thread->joinable();
|
&& m_thread->joinable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static uint32_t hardware_concurrency() {
|
||||||
|
SYSTEM_INFO info = { };
|
||||||
|
::GetSystemInfo(&info);
|
||||||
|
return info.dwNumberOfProcessors;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
Rc<ThreadFn> m_thread;
|
Rc<ThreadFn> m_thread;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user