From e1ff973bcac59143a1a20f8ce073c383843146f3 Mon Sep 17 00:00:00 2001 From: Alug Date: Sun, 24 Mar 2024 18:29:57 +0100 Subject: [PATCH] raise vissprite limit and precip distance on 64bit builds lower precip distance to vanilla values in 32bit again --- src/r_main.c | 10 ++++++++-- src/r_things.h | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/r_main.c b/src/r_main.c index 6ecf2c4c2..3b7a8b063 100644 --- a/src/r_main.c +++ b/src/r_main.c @@ -145,11 +145,17 @@ static CV_PossibleValue_t drawdist_cons_t[] = { {3072, "3072"}, {4096, "4096"}, {6144, "6144"}, {8192, "8192"}, {0, "Infinite"}, {0, NULL}}; +#if defined(__x86_64__) || defined(__amd64__) || defined(__aarch64__) || defined(__arm64__) // only for 64bit (idk how else to proper check lmao) static CV_PossibleValue_t drawdist_precip_cons_t[] = { {256, "256"}, {512, "512"}, {768, "768"}, {1024, "1024"}, {1536, "1536"}, {2048, "2048"}, - {3072, "3072"}, {0, "None"}, {0, NULL}}; - + {3072, "3072"}, {4096, "4096"}, {0, "None"}, {0, NULL}}; +#else +static CV_PossibleValue_t drawdist_precip_cons_t[] = { + {256, "256"}, {512, "512"}, {768, "768"}, + {1024, "1024"}, {1536, "1536"}, {2048, "2048"}, + {0, "None"}, {0, NULL}}; +#endif static CV_PossibleValue_t maxinterpdist_cons_t[] = { /*{256, "256"},*/ {512, "512"}, {768, "768"}, diff --git a/src/r_things.h b/src/r_things.h index 7a22b0ef1..b9e05022e 100644 --- a/src/r_things.h +++ b/src/r_things.h @@ -24,7 +24,11 @@ // number of sprite lumps for spritewidth,offset,topoffset lookup tables // Fab: this is a hack : should allocate the lookup tables per sprite +#if defined(__x86_64__) || defined(__amd64__) || defined(__aarch64__) || defined(__arm64__) // only for 64bit (idk how else to proper check lmao) +#define MAXVISSPRITES 4096 +#else #define MAXVISSPRITES 2048 // added 2-2-98 was 128 +#endif #define VISSPRITECHUNKBITS 6 // 2^6 = 64 sprites per chunk #define VISSPRITESPERCHUNK (1 << VISSPRITECHUNKBITS)