mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 14:10:11 +01:00
ref_soft: XASH_LOW_MEMORY
This commit is contained in:
parent
f376d5d59c
commit
9c7c279a5b
@ -35,7 +35,6 @@ typedef struct mip_s mip_t;
|
||||
|
||||
typedef int fixed8_t;
|
||||
typedef int fixed16_t;
|
||||
|
||||
#define offsetof(s,m) (size_t)&(((s *)0)->m)
|
||||
|
||||
#define ASSERT(x) if(!( x )) gEngfuncs.Host_Error( "assert failed at %s:%i\n", __FILE__, __LINE__ )
|
||||
@ -62,10 +61,16 @@ extern byte *r_temppool;
|
||||
#define BLOCK_SIZE_MAX 1024
|
||||
|
||||
#define MAX_TEXTURES 4096
|
||||
#define MAX_DECAL_SURFS 4096
|
||||
|
||||
#if XASH_LOW_MEMORY
|
||||
#define MAX_TEXTURES 1024
|
||||
#define MAX_DECAL_SURFS 256
|
||||
#endif
|
||||
|
||||
#define MAX_DETAIL_TEXTURES 256
|
||||
#define MAX_LIGHTMAPS 256
|
||||
#define SUBDIVIDE_SIZE 64
|
||||
#define MAX_DECAL_SURFS 4096
|
||||
#define MAX_DRAW_STACK 2 // normal view and menu view
|
||||
|
||||
#define SHADEDOT_QUANT 16 // precalculated dot products for quantized angles
|
||||
|
@ -56,6 +56,10 @@ typedef struct sortedmesh_s
|
||||
int flags; // face flags
|
||||
} sortedmesh_t;
|
||||
|
||||
#if XASH_LOW_MEMORY
|
||||
#define MAXSTUDIOVERTS 1024
|
||||
#endif
|
||||
|
||||
typedef struct
|
||||
{
|
||||
double time;
|
||||
|
Loading…
Reference in New Issue
Block a user