Use higher amount of vissprites in 64bit

This commit is contained in:
NepDisk 2025-10-13 11:23:13 -04:00
parent 24e15786a2
commit d24238a0fe

View file

@ -125,7 +125,11 @@ void R_DrawMasked(maskcount_t* masks, INT32 nummasks);
// number of sprite lumps for spritewidth,offset,topoffset lookup tables
// Fab: this is a hack : should allocate the lookup tables per sprite
#if __SIZEOF_POINTER__ < 8
#define MAXVISSPRITES 2048 // added 2-2-98 was 128
#else
#define MAXVISSPRITES 4096 // only for 64bit
#endif
#define VISSPRITECHUNKBITS 6 // 2^6 = 64 sprites per chunk
#define VISSPRITESPERCHUNK (1 << VISSPRITECHUNKBITS)