mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-13 19:29:14 +01:00
[util] Override default thread stack reserve size.
Some applications (Dragon Quest Builder 2 for instance) use an oversized default thread stack reserve size (2G in this case), which cause every DXVK thread to allocate as much memory, quickly exhausting system memory.
This commit is contained in:
parent
6b833062a0
commit
9e646a3415
@ -40,8 +40,9 @@ namespace dxvk {
|
||||
// Reference for the thread function
|
||||
this->incRef();
|
||||
|
||||
m_handle = ::CreateThread(nullptr, 0,
|
||||
ThreadFn::threadProc, this, 0, nullptr);
|
||||
m_handle = ::CreateThread(nullptr, 0x100000,
|
||||
ThreadFn::threadProc, this, STACK_SIZE_PARAM_IS_A_RESERVATION,
|
||||
nullptr);
|
||||
|
||||
if (m_handle == nullptr)
|
||||
throw DxvkError("Failed to create thread");
|
||||
|
Loading…
x
Reference in New Issue
Block a user