From d24238a0fefd58d9828c248003b7cf4eff126918 Mon Sep 17 00:00:00 2001 From: NepDisk Date: Mon, 13 Oct 2025 11:23:13 -0400 Subject: [PATCH] Use higher amount of vissprites in 64bit --- src/r_things.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/r_things.h b/src/r_things.h index 69f0ec518..cd101f2ea 100644 --- a/src/r_things.h +++ b/src/r_things.h @@ -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)