diff --git a/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp b/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp index e06491b986..f3c5505d7d 100644 --- a/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp +++ b/Source/Core/VideoBackends/OGL/ProgramShaderCache.cpp @@ -39,8 +39,6 @@ namespace OGL { -static constexpr u32 UBO_LENGTH = 32 * 1024 * 1024; - u32 ProgramShaderCache::s_ubo_buffer_size; s32 ProgramShaderCache::s_ubo_align; GLuint ProgramShaderCache::s_attributeless_VBO = 0; @@ -497,7 +495,7 @@ void ProgramShaderCache::Init() // We multiply by *4*4 because we need to get down to basic machine units. // So multiply by four to get how many floats we have from vec4s // Then once more to get bytes - s_buffer = StreamBuffer::Create(GL_UNIFORM_BUFFER, UBO_LENGTH); + s_buffer = StreamBuffer::Create(GL_UNIFORM_BUFFER, VertexManagerBase::UNIFORM_STREAM_BUFFER_SIZE); CreateHeader(); CreateAttributelessVAO(); diff --git a/Source/Core/VideoCommon/VertexManagerBase.h b/Source/Core/VideoCommon/VertexManagerBase.h index 9a657bd7f3..ba1d98c236 100644 --- a/Source/Core/VideoCommon/VertexManagerBase.h +++ b/Source/Core/VideoCommon/VertexManagerBase.h @@ -54,9 +54,9 @@ public: // Streaming buffer sizes. // Texel buffer will fit the maximum size of an encoded GX texture. 1024x1024, RGBA8 = 4MB. - static constexpr u32 VERTEX_STREAM_BUFFER_SIZE = 40 * 1024 * 1024; - static constexpr u32 INDEX_STREAM_BUFFER_SIZE = 4 * 1024 * 1024; - static constexpr u32 UNIFORM_STREAM_BUFFER_SIZE = 16 * 1024 * 1024; + static constexpr u32 VERTEX_STREAM_BUFFER_SIZE = 48 * 1024 * 1024; + static constexpr u32 INDEX_STREAM_BUFFER_SIZE = 8 * 1024 * 1024; + static constexpr u32 UNIFORM_STREAM_BUFFER_SIZE = 32 * 1024 * 1024; static constexpr u32 TEXEL_STREAM_BUFFER_SIZE = 16 * 1024 * 1024; VertexManagerBase();