File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
GeneralsMD/Code/GameEngineDevice/Include/W3DDevice/GameClient Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments