mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-31 18:46:08 +00:00
evil staging buffers for PS4
This commit is contained in:
@@ -33,7 +33,11 @@ constexpr VkDeviceSize MAX_ALIGNMENT = 256;
|
||||
// Windows ones however, can intake bigger buffers and generally do not OOM.
|
||||
// - GTX 960 on Windows will not 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;
|
||||
#else
|
||||
constexpr VkDeviceSize MAX_STREAM_BUFFER_SIZE = 256_MiB;
|
||||
|
||||
@@ -108,10 +108,12 @@ vk::SurfaceKHR CreateSurface(
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef __OPENORBIS__
|
||||
if (!unsafe_surface) {
|
||||
LOG_ERROR(Render_Vulkan, "Presentation not supported on this platform");
|
||||
throw vk::Exception(VK_ERROR_INITIALIZATION_FAILED);
|
||||
}
|
||||
#endif
|
||||
return vk::SurfaceKHR(unsafe_surface, *instance, dld);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user