|
|
@ -33,7 +33,11 @@ constexpr VkDeviceSize MAX_ALIGNMENT = 256; |
|
|
// Windows ones however, can intake bigger buffers and generally do not OOM.
|
|
|
// Windows ones however, can intake bigger buffers and generally do not OOM.
|
|
|
// - GTX 960 on Windows will not OOM with 256mib
|
|
|
// - GTX 960 on Windows will not OOM with 256mib
|
|
|
// - GT 1030 on ^NIX will OOM with 256mib
|
|
|
// - GT 1030 on ^NIX will OOM with 256mib
|
|
|
#if defined(__FreeBSD__)
|
|
|
|
|
|
|
|
|
// With Orbis we need to be insanely chary with our allocations
|
|
|
|
|
|
// anything over 64MB is prone to crash the GPU, I'm sorry.
|
|
|
|
|
|
#if defined(__OPENORBIS__)
|
|
|
|
|
|
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 32_MiB; |
|
|
|
|
|
#elif defined(__FreeBSD__)
|
|
|
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 128_MiB; |
|
|
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 128_MiB; |
|
|
#else
|
|
|
#else
|
|
|
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 256_MiB; |
|
|
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 256_MiB; |
|
|
|