mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-01-31 14:52:11 +01:00
[dxgi] Reduce reported VRAM on 32-bit platforms
This is closer to what Windows does, and some applications may have trouble with more than 3GB VRAM.
This commit is contained in:
parent
38c5e57025
commit
61049c33fb
@ -181,7 +181,7 @@ namespace dxvk {
|
|||||||
#ifndef _WIN64
|
#ifndef _WIN64
|
||||||
// The value returned by DXGI is a 32-bit value
|
// The value returned by DXGI is a 32-bit value
|
||||||
// on 32-bit platforms, so we need to clamp it
|
// on 32-bit platforms, so we need to clamp it
|
||||||
VkDeviceSize maxMemory = 0xF0000000;
|
VkDeviceSize maxMemory = 0xC0000000;
|
||||||
deviceMemory = std::min(deviceMemory, maxMemory);
|
deviceMemory = std::min(deviceMemory, maxMemory);
|
||||||
sharedMemory = std::min(sharedMemory, maxMemory);
|
sharedMemory = std::min(sharedMemory, maxMemory);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user