mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-06 12:25:00 +08:00
engine: .bss size reduction for PSP
This commit is contained in:
@@ -20,7 +20,11 @@ GNU General Public License for more details.
|
||||
// than could actually be referenced during gameplay,
|
||||
// because we don't want to free anything until we are
|
||||
// sure we won't need it.
|
||||
#if XASH_PSP
|
||||
#define MAX_SFX 2048
|
||||
#else
|
||||
#define MAX_SFX 8192
|
||||
#endif
|
||||
#define MAX_SFX_HASH (MAX_SFX/4)
|
||||
|
||||
static int s_numSfx = 0;
|
||||
|
||||
@@ -201,8 +201,13 @@ typedef struct
|
||||
|
||||
//====================================================================
|
||||
|
||||
#if XASH_PSP
|
||||
#define MAX_DYNAMIC_CHANNELS (20 + NUM_AMBIENTS)
|
||||
#define MAX_CHANNELS (128 + MAX_DYNAMIC_CHANNELS)
|
||||
#else
|
||||
#define MAX_DYNAMIC_CHANNELS (60 + NUM_AMBIENTS)
|
||||
#define MAX_CHANNELS (256 + MAX_DYNAMIC_CHANNELS) // Scourge Of Armagon has too many static sounds on hip2m4.bsp
|
||||
#endif
|
||||
#define MAX_RAW_CHANNELS 16
|
||||
#define MAX_RAW_SAMPLES 8192
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ GNU General Public License for more details.
|
||||
|
||||
extern byte *r_temppool;
|
||||
|
||||
#define LIGHTMAP_BPP 2 //1 2 3 4
|
||||
#define LIGHTMAP_BPP 1 //1 2 3 4
|
||||
|
||||
#if LIGHTMAP_BPP == 1
|
||||
#define LIGHTMAP_FORMAT PF_RGB_332
|
||||
|
||||
Reference in New Issue
Block a user