bigger buffers

This commit is contained in:
degasus 2013-02-05 18:01:27 +01:00
parent 1d86dafbe2
commit 76adc77fa6
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@
namespace OGL namespace OGL
{ {
static const u32 UBO_LENGTH = 1024*1024; static const u32 UBO_LENGTH = 4*1024*1024;
GLuint ProgramShaderCache::CurrentProgram = 0; GLuint ProgramShaderCache::CurrentProgram = 0;
ProgramShaderCache::PCache ProgramShaderCache::pshaders; ProgramShaderCache::PCache ProgramShaderCache::pshaders;

View File

@ -54,7 +54,7 @@ namespace OGL
const u32 MAX_IBUFFER_SIZE = VertexManager::MAXIBUFFERSIZE * 16 * sizeof(u16); const u32 MAX_IBUFFER_SIZE = VertexManager::MAXIBUFFERSIZE * 16 * sizeof(u16);
const u32 MAX_VBUFFER_SIZE = VertexManager::MAXVBUFFERSIZE * 16; const u32 MAX_VBUFFER_SIZE = VertexManager::MAXVBUFFERSIZE * 16;
const u32 MIN_IBUFFER_SIZE = VertexManager::MAXIBUFFERSIZE * 1 * sizeof(u16); const u32 MIN_IBUFFER_SIZE = VertexManager::MAXIBUFFERSIZE * 1 * sizeof(u16);
const u32 MIN_VBUFFER_SIZE = VertexManager::MAXVBUFFERSIZE * 1; const u32 MIN_VBUFFER_SIZE = VertexManager::MAXVBUFFERSIZE * 4;
static StreamBuffer *s_vertexBuffer; static StreamBuffer *s_vertexBuffer;
static StreamBuffer *s_indexBuffer; static StreamBuffer *s_indexBuffer;