mirror of
https://github.com/EduApps-CDG/OpenDX
synced 2024-12-30 09:45:37 +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
|
return m_thread != nullptr
|
||||||
&& m_thread->joinable();
|
&& m_thread->joinable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static uint32_t hardware_concurrency() {
|
||||||
|
SYSTEM_INFO info = { };
|
||||||
|
::GetSystemInfo(&info);
|
||||||
|
return info.dwNumberOfProcessors;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user