From 6b4e529bd6374caeb94b2a1d631bfeff5b23fbc5 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Tue, 16 Jan 2018 20:45:45 +0000 Subject: [PATCH] Shrink IVB_TABLE_SIZE It was way too big and the vertex buffer was failing to allocate in some titles. --- src/CxbxKrnl/EmuD3D8/VertexBuffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CxbxKrnl/EmuD3D8/VertexBuffer.h b/src/CxbxKrnl/EmuD3D8/VertexBuffer.h index 83422dd61..f94fddc4b 100755 --- a/src/CxbxKrnl/EmuD3D8/VertexBuffer.h +++ b/src/CxbxKrnl/EmuD3D8/VertexBuffer.h @@ -130,7 +130,7 @@ extern DWORD *g_pIVBVertexBuffer; extern X_D3DPRIMITIVETYPE g_IVBPrimitiveType; extern DWORD g_IVBFVF; -#define IVB_TABLE_SIZE ONE_MB // This should be more than enough.. Tweak as necessary if it overflows +#define IVB_TABLE_SIZE 4096 // This should be more than enough. Tweak as necessary if it overflows or the resulting VertexBuffer fails to allocate #define IVB_BUFFER_SIZE sizeof(_D3DIVB) * IVB_TABLE_SIZE // TODO : Enlarge IVB_TABLE_SIZE and IVB_BUFFER_SIZE