Skip to content

Commit 2bb5777

Browse files
committed
Add named constant
1 parent 53aaef5 commit 2bb5777

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient/W3DBufferManager.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@
4848
// TheSuperHackers @info The number of slots corresponds to number of meshes casting shadows in the scene.
4949
// The more meshes there are, the larger the slots needs to be.
5050
// TheSuperHackers @tweak Double the original sizes to allow for twice as many shadows to be created in the scene.
51-
#define MAX_NUMBER_SLOTS (4096 * 2) //maximum number of slots that can be allocated.
52-
#define MAX_VERTEX_BUFFERS_CREATED (32 * 2) //maximum number of D3D vertex buffers allowed to create per vertex type.
53-
#define MAX_INDEX_BUFFERS_CREATED (32 * 2)
51+
#define SLOTS_MULTIPLIER 2
52+
#define MAX_NUMBER_SLOTS (4096 * SLOTS_MULTIPLIER) //maximum number of slots that can be allocated.
53+
#define MAX_VERTEX_BUFFERS_CREATED (32 * SLOTS_MULTIPLIER) //maximum number of D3D vertex buffers allowed to create per vertex type.
54+
#define MAX_INDEX_BUFFERS_CREATED (32 * SLOTS_MULTIPLIER)
5455

5556
#define DEFAULT_VERTEX_BUFFER_SIZE 8192 //this size ends up generating VB's of about 256Kbytes
5657
#define DEFAULT_INDEX_BUFFER_SIZE 32768

0 commit comments

Comments
 (0)